--- Begin Message ---
Subject: |
Problem with 'sed' command |
Date: |
Tue, 10 Jul 2007 20:30:05 +0530 |
Hi,
I am using the sed command for a "search and replace" operation.
I am trying to replace a string with a ' like for example. I want to replace Kitten' with Kitten". So the command i am using is
sed 's/Kitten'/Kitten"/g' cat.txt
but it throws and error saying
Unmatched '
So it takes the ' in the input (Kitten') to be the end of the the string and the actual ' which signifies end of string is treated as Unmatched '
How can we actually search and replace a string with ' in it.
Thanks,
Nehul.
--- End Message ---
--- Begin Message ---
Subject: |
confirm 7afa4ba8e944fe4780d527c5a55fdc6cd926a3db |
If you reply to this message, keeping the Subject: header intact,
Mailman will discard the held message. Do this if the message is
spam. If you reply to this message and include an Approved: header
with the list password in it, the message will be approved for posting
to the list. The Approved: header can also appear in the first line
of the body of the reply.
--- End Message ---