[ale] replacing text

ChangingLINKS.com groups at ChangingLINKS.com
Fri Dec 12 17:18:45 EST 2003


ah. Single quotes.
Thank you.
-- 
Wishing you Happiness, Joy and Laughter,
Drew Brown
http://www.ChangingLINKS.com


On Friday 12 December 2003 16:04, Geoffrey wrote:
> ChangingLINKS.com wrote:
> > I am trying to replace text in a set of files.
> > Thusly:  perl -pi -e "s/test/tEst/g;" ./*
> > Worketh.
> >
> > However, I need to replace variables marked with $
> > Thusly: perl -pi -e "s/$test/$tEst/g;" ./*
> > Not worketh, nor  perl -pi -e "s/\$test/\$tEst/g;" ./*
> >
> > How do I "escape" the $ ?
>
> perl -pi -e 's/\$test/\$Test/;'



More information about the Ale mailing list