Jan 102010
Convert DOS newlines to Unix format
Answer:
To convert DOS newlines (CR/LF) to Unix (LF only), use sed, which can be found on most platforms.
sed "s/\r//" input.txt > output.txt
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
Convert DOS newlines to Unix format
Answer:
To convert DOS newlines (CR/LF) to Unix (LF only), use sed, which can be found on most platforms.
sed "s/\r//" input.txt > output.txt