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

Re: find/ls most recent files

RituRaj <ritu_turu@yahoo.com> writes:

> --- Matt Price <matt.price@utoronto.ca> 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
> {}\;

The -tr options to ls are pointless, since a new ls process is run for
every filename.


Reply to: