[geeks] find - having a senior moment

Brian Dunbar brian.dunbar at liftport.com
Mon Jan 14 14:26:10 CST 2008


Hey,

I'm having a senior moment - I wanted to do something I did last week and
I can't remember how I did it.

Last week I ran a find command that produced output like so ..

95732   ./NonAgileFiles/t_agile60971292.doc
87060   ./NonAgileFiles/t_agile60978519.doc
112396  ./NonAgileFiles/t_agile61418345.doc
0       ./NonAgileFiles/New Text Document.txt

With the first column being the size of the file.  Now how in the name of
Ogg did I do that?  It was so darn clever that I thought I didn't need to
write it down .. and now that I'm back from a long weekend I have no idea
how I did it.  Certainly this works ..

find . -mtime +1095 -mtime -1460 -print -exec ls -l {} \;

But it gives me a lot of extra stuff I'd rather not have - all I need is
the size of the file and it's path.

I'd sure like to avoid having to cut all of the useless crap from output.

Thanks in advance,

Brian



More information about the geeks mailing list