I have a file with 4 million lines, each line ends with char $, but I mistakenly add a new line after the line separator when cleaning the website, so now it looks like this:
fist name, last name, phone, address, postal code, city, region,$
$
fist name, last name, phone, address, postal code, city, region,$
$
the new line "$" appears, of course, only if I use: set list, but I try to use this file for bulk insert in mysql, and now I am having problems with it.
I want to change the file:
fist name, last name, phone, address, postal code, city, region,$
fist name, last name, phone, address, postal code, city, region,$
How can i do this? with sed or awk or even vi? looked around, and what I found is really not relevant to this case.
please do not take into account the extra empty line shown above.
Thanks in advance