User Tools

Site Tools


file:dos2unix

This is an old revision of the document!


File - DOS2UNIX

Convert all DOS newlines (CR/LF) to UNIX format (CR).

Works when each line ends with ^M (Ctrl-M). Removes the ^M.

awk '{sub(/\r$/,"");print}' filename
file/dos2unix.1468172110.txt.gz ยท Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki