in reply to search folder and delete certain files with perl
Maybe just use the system tool?
$ find /var/opt/xim/syslogs -maxdepth 1 -type f -name "Syslogd*" -mtim +e +0.5 -delete
(Run without -delete first, to make sure you picked the right files!!)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: search folder and delete certain files with perl
by locked_user sundialsvc4 (Abbot) on Dec 08, 2011 at 22:23 UTC |