Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using quotations in sed script 1

Status
Not open for further replies.

ianicr

IS-IT--Management
Nov 4, 2003
230
GB
I used sed to replace a comma with a space in a file eg.
sed 's/,/ /3' file.csv

how do I change a , to a '?
 
Use " (double-quote) :-
sed "s/,/'/3" file.csv
HTH

Dickie Bird (:)-)))
 
Had a feeling it would be that easy... Thanks mate
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top