sed syntax question

cpnhowdy

Limp Gawd
Joined
Apr 12, 2002
Messages
186
Ive got a table of number like so:
23/34/45
55/76/44
etc.
and I want to replace every / with a colon : . Im getting syntax errors when trying to pass the "/" symbol to sed to be replaced by ":".
It should be obvious but it escapes me.. :confused:
 

jpmkm

That Ain't Mayo On My Lip...
Joined
Oct 30, 2001
Messages
5,773
If you are using the standard forward slash delimiter, then you'll have to escape the slash you want to replace by preceding it with a backslash. Alternatively you could just use a different delimiter.
 
Top