in reply to (1) line of sh vs (~20) lines of perl ?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: (1) line of sh vs (~20) lines of perl ?
by Aristotle (Chancellor) on Nov 18, 2002 at 16:13 UTC |