Newline conversion from DOS/Windows to Unix/Linux

To convert DOS/Windows newlines (CRLF) to Unix/Linux newlines (LF):

sed 's/^M$//'

Important: To generate the ^M type ctrl-v-m, not the ^ character followed by M.

Last modified: 09/11/2011 Tags:

This website is a personal resource. Nothing here is guaranteed correct or complete, so use at your own risk and try not to delete the Internet. -Stephan

Site Info

Privacy policy

Go to top