Open 7dir opened 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
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