[ale] replacing text

Geoffrey esoteric at 3times25.net
Fri Dec 12 17:05:36 EST 2003


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/;'

-- 
Until later, Geoffrey	esoteric at 3times25.net

Building secure systems inspite of Microsoft



More information about the Ale mailing list