One way which is a lot more efficient resource wise.
find . -name '*.std' -o -name 'ULOG.*' -mtime +9 -type -f -print | per +l -ne 'chop; unlink;'
This is a fairly standard idiom and is a published example somewhere though I don't remember where I saw it.
It would be run from the shell.
Another option is the File::Find module do do this type of stuff directly from perl.
In reply to Re: system command error
by dga
in thread system command error
by Jassica
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |