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.
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: sed
Other pages possibly of interest:
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