Antony P Joseph on 3 Nov 2007 03:06:17 -0000


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

Re: [PLUG] find files within a date range


Hi
   If find can not do it, this will do it

ls -l --time-style=+%Y%m%d| perl -alne 'print if ($F[5] gt 20070510 &&
$F[5] lt 20070515);

With regards
Antony'

Neill R wrote:
> I have a dir with 12000 files, I need to find files with a time stamp
> between 5-10-07 and 5-15-07....any ideas? I have looked through the
> find man pages but nothing seems to pop out at me, thanks in advance...
> ------------------------------------------------------------------------
>
> ___________________________________________________________________________
> Philadelphia Linux Users Group         --        http://www.phillylinux.org
> Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
> General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug
>   

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug