mltefive / docs

https://mltefive.github.io/docs/
1 stars 0 forks source link

ASCII CR+LF (DOS/Windows) and LF (Unix) newlines #48

Open 7dir opened 4 years ago

7dir commented 4 years ago

The simplest solution, use the dos2unix command (sometimes named fromdos, d2u or unix2dos):

dos2unix filename

Using the stream editor sed:

sed -e "s/\r//g" file > newfile

Using perl:

perl -p -e 's/\r//g' file > newfile