Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: passing a variable value to Unix commandby DrHyde (Prior) |
on Oct 20, 2010 at 10:06 UTC ( [id://866283]=note: print w/replies, xml ) | Need Help?? |
First, if you want to append a * to the value, it needs to be quoted:
Second, running that command several times, once for each element in the list, can be veeeeerrrryyyyy ssllllloooooooowwww. Most (all?) platforms' find utilities will let you do something like this ... and do it all in one go. Although obviously at some point you're going to run into command line length limitations.
In Section
Seekers of Perl Wisdom
|
|