in reply to Re: To Delete folders older than 14 days.-Want one liner command
in thread To Delete folders older than 14 days.-Want one liner command
Kcott thanks for ur reply. I tried as u suggested but below code showing parameter not correct error. Kindly help me . And I used ls-l its not recognized. Regards rrrrr
#!/usr/bin/perl my $command=`find D/Archieve/Test -type d -mtime +14 -exec rm -rf {} \ +\;`; system $command; print $command;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: To Delete folders older than 14 days.-Want one liner command
by kcott (Archbishop) on Sep 17, 2012 at 07:26 UTC | |
by rrrrr (Novice) on Sep 18, 2012 at 03:16 UTC |