in reply to command lineIn place edit with a filter

Well I figure I have to use something like xargs but any idea on how to achieve it on windows? - since we don't have xargs :-(

Finally, I wrote a script using File::Recurse but a one liner would be cool. Thanks in advance.

Saurabh

  • Comment on Re: command lineIn place edit with a filter

Replies are listed 'Best First'.
Re: Re: command lineIn place edit with a filter
by jsprat (Curate) on Apr 04, 2003 at 18:52 UTC
    for /R %f in (*.dsp) do perl -ibak -pe "s#\bGPP\b#Arjun#i;" %f

    Not quite xargs ;-) 'for' will do much more than it used to. The '/R' makes for look recursively in each subdirectory.