I want to convert file to string and do some processing and get back same to file again in bash shell in Linux.
Mainly, aim is to remove new line '\n'
by ';'
which is not exist in file and get file gain by replacing ';'
by '\n'
.(; is non exists in file)
when I checked file with :set list
to check all character in the file.
I can see $
at end of line and when I run :
:%s/\n\;\g
to replace it works but next
:%s/;/\n\g
don't work, I can see character ^@
instead of $
at the new line.
How can it be achieved in shell?