Hi all ,
I want to put a single quote at the begining and single quote plus a comma at the end of each line in a file. I did the following ,
sed -e "s/^/'/" -e "s/$/',/" filename
It worked.
But if I do ,
sed -e 's/^/\'/' -e 's/$/\',/' filename
That do not work, I am given a secondary prompt by the shell as if the command is not complete.
Why \' is not working like this ?
Regards
I want to put a single quote at the begining and single quote plus a comma at the end of each line in a file. I did the following ,
sed -e "s/^/'/" -e "s/$/',/" filename
It worked.
But if I do ,
sed -e 's/^/\'/' -e 's/$/\',/' filename
That do not work, I am given a secondary prompt by the shell as if the command is not complete.
Why \' is not working like this ?
Regards