in reply to Re: multiple file operations using perl one-liners
in thread multiple file operations using perl one-liners
-n + chomp can be replaced with -nl.
That should be /\t/, I think? -a would be better than split
du -b */*/old.zip | perl -F\\t -lane'system zip => "-d", $F[1], "*exe* +"'
Or shorter and simpler yet:
du -b */*/old.zip | perl -ne'system zip => "-d", /\t(.*)/, "*exe*"'
My earlier comment on error checking still applies.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: multiple file operations using perl one-liners
by sflitman (Hermit) on May 17, 2009 at 22:03 UTC | |
Re^3: multiple file operations using perl one-liners
by morgon (Priest) on May 17, 2009 at 22:36 UTC | |
Re^3: multiple file operations using perl one-liners
by jwkrahn (Abbot) on May 18, 2009 at 01:51 UTC | |
by ikegami (Patriarch) on May 18, 2009 at 03:20 UTC | |
by jwkrahn (Abbot) on May 18, 2009 at 06:00 UTC | |
by ikegami (Patriarch) on May 18, 2009 at 07:10 UTC |
In Section
Cool Uses for Perl