new_perl_user
asked on
Reading Files in Perl
Hi,
Can anyone help me with a code snippet to read recursively dir and sub dir from a path and grep them by yesterday's date.
Can anyone help me with a code snippet to read recursively dir and sub dir from a path and grep them by yesterday's date.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Can you please suggest a solution for above one..
$\=$/;print for grep -d && (-M) < 2, <path/*/*>;
ASKER
Thank you it is working to an extent but it is printing out all the folders within a Sun dire too.
Is there a way to print out only till Subdir level.