Removing Windows newlines on Linux (sed vs. awk)
You can use the command line tool dos2unix dos2unix input Or use the tr command: tr -d ‘\r’ <input >output Actually, you can do the file-format switching in vim: Method A: :e ++ff=dos :w ++ff=unix :e! Method B: :e ++ff=dos :set ff=unix :w EDIT If you want to delete the \r\n sequences in the file, … Read more