Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: multiple file operations using perl one-liners

by ikegami (Pope)
on May 17, 2009 at 19:37 UTC ( #764542=note: print w/replies, xml ) Need Help??


in reply to multiple file operations using perl one-liners

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://764542]
help
Chatterbox?
[erix]: yes, very handy that. I always use the one-page html version (dumped a local copy of it)
[erix]: (easier for searching)
choroba tries to grep -i choroba absg.html
[erix]: I count 3 (+1 in the list)-- wel done :)
[choroba]: I've read it body to /body and experimented a lot...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2017-11-24 11:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (348 votes). Check out past polls.

    Notices?