Re: find/ls most recent files
--- 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
{}\;
>
> but while this seems to return the right files
> (can't be sure) they're
> not sorted by time. So what solutions do other
> people use?
>
> matt
>
> --------------------------
> .''`. Matt Price
> : :' : Debian User
> `. `'` & hemi-geek
> `-
> --------------------------
> if you're an evil spambot, these addresses are for
> you: aardvark@derailleur.org, zeus@derailleur.org
>
>
> --
> To UNSUBSCRIBE, email to
> debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
>
__________________________________
Yahoo! Messenger
Show us what our next emoticon should look like. Join the fun.
http://www.advision.webevents.yahoo.com/emoticontest
Reply to: