Remove carriage return '\r' character in many files, without looping and intermediary files

recode pc..l1 file1 file2 file3

March 31, 2012 — Anon8MaLEqEp

Explanation

The recode utility installed on many systems converts between character sets. This command is shorthand for recode IBM-PC..latin1 file1 file2 file3 which converts the given files from CRLF to LF line endings.

Related one-liners

Remove carriage return '\r' character in many files, without looping and intermediary files

vi +'bufdo set ff=unix' +'bufdo %s/^M$//' +q file1 file2 file3

March 30, 2012 — bashoneliners