I have an unix file whose delimeter is #!
I need to replace the delimeter '#!' to '~'
But I have '#' as data in some columns. I don't want to replace them.
I want to replace only # and ! together. I don't want to replace when either of them occurs single(only # or only !).
Please help me with a unix command
You can use the
sedcommand to do replacements.For example, if your file was data.txt:
IF you want to edit the file inplace, you can use this:
Hope this helps!