07-25-06 12:48 PM
Bill Marcum wrote:
> On 22 Jul 2006 10:25:44 -0700, shruti.dabhade@gmail.com
> <shruti.dabhade@gmail.com> wrote:
>
> popen("ls -tr", "r")
>
>
> --
> My apologies if I sound angry. I feel like I'm talking to a void.
> -- Avery Pennarun
Here is how you can list n oldest files
ls -lrt <directory>/<file extensions> | grep -v total | awk -F " "
'{print $9}' | head -100
this will list 100 oldest files of particular extension in a given
directory
Regards,
Swarup
You will if you can,
You won't if you can't
[ Post a follow-up to this message ]
|