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 required, actually.

dir /s *.foo | xargs doit -switches

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

Replies are listed 'Best First'.
Re: Re: looking for a quickie
by Anonymous Monk on Mar 18, 2003 at 18:40 UTC
    thanks ... seems however that on a windows machine XARGS isn't available