Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I'm so out of touch with perl and I need an answer to this cause it's killing me :o! I've got to execute a shell command agianst each file in a directory and it's subdirectories ... for example
for each file available in "dir /s *.foo" i've got to execute "doit -switches $filename"
I know that perl can probably do this in a handful of lines but haven't used perl in about 3 years could someone please post a 'gimmie' ?
At one time I was like a 6th level monk here, now i can't even remember what my log in name was (buddha or something)
Edited 2003-03-19 by mirod: changed the title
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: looking for a quickie
by BrowserUk (Patriarch) on Mar 18, 2003 at 19:08 UTC | |
by jsprat (Curate) on Mar 18, 2003 at 19:35 UTC | |
|
Re: looking for a quickie
by dragonchild (Archbishop) on Mar 18, 2003 at 18:33 UTC | |
by Anonymous Monk on Mar 18, 2003 at 18:40 UTC | |
|
Re: looking for a quickie
by talexb (Chancellor) on Mar 18, 2003 at 18:34 UTC | |
|
Re: looking for a quickie
by graff (Chancellor) on Mar 19, 2003 at 04:29 UTC | |
|
Re: looking for a quickie
by jacques (Priest) on Mar 18, 2003 at 18:41 UTC | |
by Anonymous Monk on Mar 18, 2003 at 19:08 UTC |