Perl: the Markov chain saw | |
PerlMonks |
Re: passing a variable value to Unix commandby graff (Chancellor) |
on Oct 20, 2010 at 02:23 UTC ( [id://866228]=note: print w/replies, xml ) | Need Help?? |
Depending on how many patterns you need to locate, and how long it takes for unix 'find' to traverse the given directory tree, you might want to consider running 'find' just once, and use perl's grep function to pull out the desired file names:
(BTW, I think '-print' is on by default -- you probably don't need to include that in the 'find' command.)
In Section
Seekers of Perl Wisdom
|
|