Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: looking for a quickie

by BrowserUk (Patriarch)
on Mar 18, 2003 at 19:08 UTC ( [id://244127]=note: print w/replies, xml ) Need Help??


in reply to How do I execute a shell command against each file in a directory and it's subdirectories? (was: looking for a quickie)

No perl, cygwin or 4NT required:)

for /F %f in ('dir /s /b') do doit -switches %f

Examine what is said, not who speaks.
1) When a distinguished but elderly scientist states that something is possible, he is almost certainly right. When he states that something is impossible, he is very probably wrong.
2) The only way of discovering the limits of the possible is to venture a little way past them into the impossible
3) Any sufficiently advanced technology is indistinguishable from magic.
Arthur C. Clarke.

Replies are listed 'Best First'.
Re: Re: looking for a quickie
by jsprat (Curate) on Mar 18, 2003 at 19:35 UTC
    ++BUK for getting me to look at the cmd.exe docs!

    Here's another snippet -

    for /R %f in (*) do doit -switches %f

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://244127]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-23 12:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found