Link to home
Start Free TrialLog in
Avatar of new_perl_user
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.

ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of new_perl_user
new_perl_user

ASKER

Hi,

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.

Can you please suggest  a solution for above one..
$\=$/;print for grep -d && (-M) < 2, <path/*/*>;