I need to change every occurrence of ! to : as field separators in a group file.
sed 's/!/:/g' filename > newfilename
But I get the error /: Event not found?
You are using csh so the ! is being interpreted to fix this escape the ! or just use bash:
sed 's/\!/:/g' file > outfile
With csh the ! used for command history reference and it works even inside a pair of apostrophes ' or quotation marks ", unless escaped with a backslash \.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With