Quick question: quoting text in sed
I'm trying to quote some characters so that I can say something like "sed 's/$var//g'" from a bash script without worrying about the characters in $var being seen as regex special chars. Thanks in advance for any help.
EDIT:
Sorry, a better example should've been more like
sed "s/\b$var\b//gI"
And I want to quote just the stuff under $var.
Last edited by overbored; 06-24-2004 at 01:24 PM.
|