Skip site navigation (1)Skip section navigation (2)
Date:      17 Jun 2004 15:31:45 +0100
From:      Richard Caley <rjc@caley.org.uk>
To:        Gerard Samuel <fbsd-questions@trini0.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Means of traversing a directory
Message-ID:  <87acz2b6i6.fsf@pele.r.caley.org.uk>
In-Reply-To: <200406170909.37669.fbsd-questions@trini0.org>
References:  <200406170909.37669.fbsd-questions@trini0.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <200406170909.37669.fbsd-questions@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@MYLASTNAME.org.uk        _O_
                                                 |<



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87acz2b6i6.fsf>