User Tools

Site Tools


file:dos2unix

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
file:dos2unix [2016/07/10 17:35] peterfile:dos2unix [2019/11/27 21:12] (current) – removed peter
Line 1: Line 1:
-====== 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> 
- 
  
file/dos2unix.1468172148.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki