Exercises
- Read the documentation page of the
os
package at https://golang.org/pkg/os/. - Visit https://golang.org/pkg/path/filepath/to learn more about the
filepath.Walk()
function. - Change the code of
rm.go
in order to support multiple command-line arguments, and then try to implement the-v
command-line option of therm(1)
utility. - Make the necessary changes to the Go code of
which.go
in order to support multiple command-line arguments. - Start implementing a version of the
ls(1)
utility in Go. Do not try to support everyls(1)
option at once. - Change the code of
traverseDir.go
in order to print regular files only. - Check the manual page of
find(1)
and try to add support for some of its options inregExpFind.go
.