User Tools

Site Tools


ubuntu:file:dos2unix

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ubuntu:file:dos2unix [2019/11/27 21:13] – created peterubuntu:file:dos2unix [2022/06/13 11:16] (current) – removed peter
Line 1: Line 1:
-====== Ubuntu - File - DOS2UNIX ====== 
- 
-Convert all DOS newlines (CR/LF) to UNIX format (CR).  This is the same as converting **/r/n** to **/n**. 
- 
-Works when each line ends with ^M (Ctrl-M).  Removes the ^M. 
- 
-<code bash> 
-awk '{sub(/\r$/,"");print}' filename 
-</code> 
- 
  
ubuntu/file/dos2unix.1574889197.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki