Well nearly one-line :)perl -MFile::Find::Rule -e 'unlink find(file => mtime => 86400 * 30,in => shift)' /backup
_________
broquaint
update: dropped the for, as Aristotle rightly points out unlink can take a list
In reply to Re: (1) line of sh vs (~20) lines of perl ?
by broquaint
in thread (1) line of sh vs (~20) lines of perl ?
by mandog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |