View Single Post
  #1   (View Single Post)  
Old 8th March 2009
gosha gosha is offline
Spam Deminer
 
Join Date: Jun 2008
Location: China
Posts: 256
Default escape single quote in sed

I've googled the all world, but can't find the answer to this question:
I need to replace in a file s' (s plus single quote) with another character (one character in the place of two). I tried this (and many other variants):
Code:
sed 's/s\'/X/' file > newfile
but I always get a
Code:
>
what should I do?
Reply With Quote