Exercises
- Read the documentation page of the
ospackage 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.goin order to support multiple command-line arguments, and then try to implement the-vcommand-line option of therm(1)utility. - Make the necessary changes to the Go code of
which.goin 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.goin 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.