DaemonForums  

Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 8th March 2009
gosha gosha is offline
Spam Deminer
 
Join Date: Jun 2008
Location: China
Posts: 256
Thanked 0 Times in 0 Posts
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
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remap colour escape codes bsdperson FreeBSD General 2 14th September 2009 10:52 AM
I need to set up a firewall and DNS server on a single computer HELP PLEASE kla OpenBSD General 8 4th June 2009 08:38 PM
Single instance of VLC player maxrussell General software and network 1 8th February 2009 03:57 PM
can't get out of twm - any escape? Lazy FreeBSD General 4 28th June 2008 07:26 PM


All times are GMT. The time now is 07:08 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick