Now, how would I then sort the results by date.  in other words, I'd like
to have a chronologically ordered list of files between certain dates.

thanks

----------
> From: Joseph W. DeVincentis <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: finding all files created btwn certain dates
> Date: Thursday, November 05, 1998 12:41 PM
> 
> > How can I get a recursive directory list of all files created between
> > certain dates (e.g. 10/1/98 - 11/1/98) - it's a linux box - seems I'd
use
> > find or ls, but what parameters do I use.
> 
> You would use find.  Find is quite versatile, but also a bit confusing if
> you've never used it before, or even if you have. :-) You would want to
do
> something like:
> 
> find some/path -daystart -ctime +4 -ctime -36 -print
> 
> Find divides its argument list into two parts; all the directory names
> you want it to search in first, followed by all the options,
restrictions,
> and commands you want to give it.
> 
> some/path is the name of the one or more directories you want find to
> look in.  Unless you tell it otherwise, it will recursively search
> everything under those directories.  If you are checking your entire
> file system, add the -xdev option to make find not go into other
> mounted filesystems, and list the top directory of each disk partition,
> because otherwise find will do silly things like search /proc.
> 
> -daystart makes find start the count for ctime at the beginning of the
> day, rather than at the current time.
> 
> -ctime +4 causes find to only consider files created more than 4 days
ago.
> 
> -ctime -36 causes find to only consider files created less than 36 days
ago.
> The -mtime and -atime options search modified times and access times,
> similarly.
> 
> -print prints the name of any file which has passed these checks.
> You can instead put -ls here to get a long listing somewhat like ls -l.
> 
> /dev/joe
>
---------------------------------------------------------------------------
> Send administrative requests to [EMAIL PROTECTED]
---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]

Reply via email to