lundi 1 décembre 2014

Remove a carriage return with sed


I have a large CSV file. One of the fields contains an error. This error appears as a new line in the file.


Since now i've been using notepad++ with this command to correct the problem :



\r";" => ";"



How can I do the same with sed ?


I've already tried



sed -i 's/\r";"/";"/g' /path/file.csv
sed -i 's/^";"/";"/g' /path/file.csv


no success, someone here know probably the right command



Aucun commentaire:

Enregistrer un commentaire