lost and found ( for me ? )

dos2unix , unix2dos : convert DOS format text file to UNIX format or vice versa

dos2unix converts a text file line endings from CRLF to LF or LF to CRLF

install dos2unix

mint-13 Script_works # apt-get install dos2unix -y

- convert CRLF to LF
mint-13 Script_works # file zzz.py
zzz.py: Python script, ASCII text executable, with CRLF line terminators

mint-13 Script_works # dos2unix zzz.py
dos2unix: converting file zzz.py to Unix format ...

- convert LF to CRLF
mint-13 Script_works # unix2dos zzz.py
unix2dos: converting file zzz.py to DOS format ...
mint-13 Script_works # file zzz.py
zzz.py: Python script, ASCII text executable, with CRLF line terminators

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.