Results 1 to 3 of 3
perl -w -i -p -e "s/search_text/replace_text/g" filename
How do I, in the search_text spot, get it to search for an & sign? Is there a special way to include such?...
- 08-14-2008 #1Just Joined!
- Join Date
- Apr 2008
- Posts
- 18
[SOLVED] Looking for &
perl -w -i -p -e "s/search_text/replace_text/g" filename
How do I, in the search_text spot, get it to search for an & sign? Is there a special way to include such?
- 08-15-2008 #2Linux User
- Join Date
- May 2008
- Location
- NYC, moved from KS & MO
- Posts
- 251
Use "\" in front of "&" or "?" to escape them.
- 08-15-2008 #3Just Joined!
- Join Date
- Apr 2008
- Posts
- 18
Worked like a charm. Thank you!


