Safer and no longer:
perl -e'while(<>) { chomp; system zip => "-d", $_, "*exe*" }' oldfiles
Error checking (like a simple '-Mautodie' or 'or die "system: $?\n"') wouldn't hurt either.
In reply to Re: multiple file operations using perl one-liners
by ikegami
in thread multiple file operations using perl one-liners
by sflitman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |