in reply to Re^3: To Delete folders older than 14 days.-Want one liner command
in thread To Delete folders older than 14 days.-Want one liner command
Hi Ken, Am working in Java Projects. Previosuly some Locate command was there but not deleting the folders. So I got this task to delete the archieved folder based on modification days.I am just going to implement this one line command in already written prog.So oly in search of one line command.Then I am testing in Development Region only so chnging the path and testing. When I searched I got this Find command. Am trying all ways of find command but either its showing invalid switch or parameter not correct error. Kindly asssit me.
#!/usr/bin/perl system("find /D/maestro/TestDelete -mtime +4 -exec ls -l {} \\");
|
|---|