Means of traversing a directory

2004-06-17 Thread Gerard Samuel
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

Re: Means of traversing a directory

2004-06-17 Thread Richard Caley
In article [EMAIL PROTECTED], Gerard Samuel (gs) writes: gs Im running tar(1) to make a tar ball of a directory using the gs --newer-mtime to only get newer files after a specified date. gs Unfortunately, it also creates unwanted empty directories. Have you tried using find? If a relative

Re: Means of traversing a directory

2004-06-17 Thread Gerard Samuel
On Thursday 17 June 2004 10:31 am, Richard Caley wrote: In article [EMAIL PROTECTED], Gerard Samuel (gs) writes: gs Im running tar(1) to make a tar ball of a directory using the gs --newer-mtime to only get newer files after a specified date. gs Unfortunately, it also creates unwanted empty