Means of traversing a directory

Richard Caley rjc at caley.org.uk
Thu Jun 17 07:32:14 PDT 2004


In article <200406170909.37669.fbsd-questions at trini0.org>, 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 time is good enough

        find DIR -type f -mtime -6 

if you need to specify a time and date, I think the only way is to use
touch to makea file at the right date then use find's -newer test.

-- 
Mail me as MYFIRSTNAME at MYLASTNAME.org.uk        _O_
                                                 |<



More information about the freebsd-questions mailing list