Means of traversing a directory

Gerard Samuel fbsd-questions at
Thu Jun 17 06:09:59 PDT 2004

For a shell script.
The scenario.
Im running tar(1) to make a tar ball of a directory using the 
--newer-mtime to only get newer files after a specified date.
Unfortunately, it also creates unwanted "empty" directories.
Is there a way to scan the directory (recursively) into an array, and loop 
over it, in a script?


More information about the freebsd-questions mailing list