[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: find/ls most recent files



On Mon, Apr 04, 2005 at 04:56:44AM -0700, RituRaj wrote:
> 
> > I have a directory that's gotten out of hand with
> > several hundred
> > files.  I'm looking foractive files, and normally
> > would do 
> > ls -tr 
> > to find the most recently-modified files -- but the
> > list is so huge
> > it's difficult.  So I tried:
> > 
> > find . -maxdepth 1 -f file -atime -2 
> 
> find . -maxdepth 1 -f file -atime -2 -exec ls -ltr
> {}\;

gaah!  that's so OBVIOUS!

thanks,
matt



Reply to: