2007/8/29, John W. Krahn <[EMAIL PROTECTED]>:
> Jeff Pang wrote:
> > 2007/8/28, mojorising <[EMAIL PROTECTED]>:
> >
> >> Here is the script:
> >> perl -i.old -p -e /s/$(cat infra_east.txt)/$(cat infra_west.txt)/ig
> >> configfile.cfg
> >>
> >
> > Not tested it but it seems to be:
> >
> > perl -pi.old -e 's/$(`cat infra_east.txt`)/$(`cat infra_west.txt`)/ig'
> >
> > notice for the `` symbol.
>
> `` and $() do the same thing, just like in perl where `` and qx() do the same
> thing.
>

Thanks.Never knew that.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to