Purshottam Chandak wrote:
> 
> perl -ipe "s/yak/bak/g" `dir *.yak` is supposed to allow me to do a search
> and replace on all the .yak files in the directory in which I am working.
> It doesn't; I get all sorts of errors. I've tried modifications of said
> string- I've tried pipes,
> 
> I've tried separating the command line parameters with individual dashes,
> I've tried turning
> the `dir *.yak` command into a bat file and calling it like:
> 
> perl -i -p -e "s/yak/bak/g" `dir.bat`
> 
> All to no avail. Does anyone understand these parameter things well enough
> to help me?


It looks like you are trying to do this on Windows.

perl -pi -e"BEGIN{@ARGV=<*.yak>};s/yak/bak/g"

Not tested! (I don't do Windows :)


John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to