![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
Re: Need to change, oh, every file at once?by ariels (Curate) |
on Jan 22, 2002 at 12:49 UTC ( #140620=note: print w/replies, xml ) | Need Help?? |
This way of using `find' is inefficient: it spawns a new Perl process for every file processed. Why not use xargs? (Also, ``-name "*"'' does nothing, so you could just lose it)
find ./ -type f | xargs ./somescript.plstarts the least number of processes. More than one process may be started if the length of the command line grows beyond what's permitted.
In Section
Cool Uses for Perl
|
|