sed matching an apostrophe
Hi there,
I'd like to figure out to get sed to match an apostrophe. I am trying the following which does'nt match. It's my understanding the 048 is the ascii code for an apostrophe but this may be wrong. ~> echo "abc'" | sed 's/'`echo "\048"`'/xyz/g' abc' Would appreciate some tips. I took a look in the sed faq and some others places and I can't find the answer. Thanks. |
~> echo "abc'" | sed 's/'"'"'/xyz/g'
abcxyz lol that did it :-) |
echo "abc'" | sed "s/'/xyz/g"
;} Cheers, Tink |
All times are GMT -5. The time now is 07:17 AM. |