[Command] dos2unix common Linux commands, unix2dos command

we all know. Hit the Enter key is meant wrap.

In different systems to fight the Enter key effect is different:

  • The MAC OS: dakdhih \ r
  • Under LINUX: dakdhih \ n
  • Dosh \ Windows 下: Dkdhih \ r \ n

When using git code management, git will automatically convert between CRLF and LF, which we do not have to worry about.

 

If I want to windos from a text file under linux, \ no front n \ r up? ? ? ?

reading windows compiler code is not recognized \ r \ n appear together, not to wrap.

 

Perform the conversion:

dos2unix file

unix2dos file 

Guess you like

Origin www.cnblogs.com/zoe233/p/11808255.html