On Sat, 2006-01-07 at 15:09, Anurag wrote: > Sometime on Sat, Jan 07, 2006 at 03:05:40PM +0530, Hardik Dalwadi said: > > I think Below command will definately work > > > > "ls -lt | grep "your desire date in YY-MM-SS Format" > > > > [EMAIL PROTECTED]:/home/hardik# ls -lt | grep "2006-01-05" > > drwxr-sr-x 6 hardik hardik 200 2006-01-05 17:42 sandbox > > drwxr-sr-x 2 hardik hardik 200 2006-01-05 14:40 Attachments > > -rw-r--r-- 1 hardik hardik 468 2006-01-05 13:16 tai64n > > > Now its more generic: > > $ ls -lt | grep `date -I`
ls -lt give the date like this, [EMAIL PROTECTED] tima]$ ls -lt total 5412 -rw-r--r-- 1 tima prgrp 1815 Jan 5 22:25 toppy.txt -rw------- 1 tima prgrp 23024 Dec 17 00:09 mbox drwxr-xr-x 2 root root 1024 Mar 14 2005 plugins So I can't grep for 2006-01-05. Would have to use sed/awk to process the spaces. BTW, find / -mtime -1 should give me files modified since yesterday, right? Or should it be 1 instead or -1? Regards, NMK. -- http://mm.ilug-bom.org.in/mailman/listinfo/linuxers

