우분투 DOS 문서 UNIX 포맷

Ubuntu Korea Community Wiki
둘러보기로 이동 검색으로 이동

ubuntu dos2unix[편집]

{{#ifeq: msg|user|~|{{#ifeq: misc|user|~  sudo apt-get install dos2unix|{{#ifeq: root|user|ubuntu-korea|{{#ifeq: user|user|user@ubuntu-korea|(undefined)}}}} ~ {{#ifeq: root|user|#|{{#ifeq: user|user|$|$}}}}  sudo apt-get install dos2unix}}}}

또는

{{#ifeq: msg|user|~|{{#ifeq: misc|user|~  sudo apt-get install tofrodos|{{#ifeq: root|user|ubuntu-korea|{{#ifeq: user|user|user@ubuntu-korea|(undefined)}}}} ~ {{#ifeq: root|user|#|{{#ifeq: user|user|$|$}}}}  sudo apt-get install tofrodos}}}}
{{#ifeq: msg|user|~|{{#ifeq: misc|user|~  sudo ln -s /usr/bin/fromdos /usr/bin/dos2unix|{{#ifeq: root|user|ubuntu-korea|{{#ifeq: user|user|user@ubuntu-korea|(undefined)}}}} ~ {{#ifeq: root|user|#|{{#ifeq: user|user|$|$}}}}  sudo ln -s /usr/bin/fromdos /usr/bin/dos2unix}}}}

  • 실행

unix 계열의 text file은 다른 줄바꿈 문자(\n)가 사용됩니다.

DOS/Window는 \r\n가 사용됩니다.

{{#ifeq: msg|user|test|{{#ifeq: misc|user|test  unix2dos a.txt b.txt|{{#ifeq: root|user|ubuntu-korea|{{#ifeq: user|user|user@ubuntu-korea|(undefined)}}}} test {{#ifeq: root|user|#|{{#ifeq: user|user|$|$}}}}  unix2dos a.txt b.txt}}}}
{{#ifeq: msg|user|test|{{#ifeq: misc|user|test  unix2dos -o a.txt b.txt|{{#ifeq: root|user|ubuntu-korea|{{#ifeq: user|user|user@ubuntu-korea|(undefined)}}}} test {{#ifeq: root|user|#|{{#ifeq: user|user|$|$}}}}  unix2dos -o a.txt b.txt}}}}

또는

{{#ifeq: msg|user|test|{{#ifeq: misc|user|test  dos2unix a.txt b.txt|{{#ifeq: root|user|ubuntu-korea|{{#ifeq: user|user|user@ubuntu-korea|(undefined)}}}} test {{#ifeq: root|user|#|{{#ifeq: user|user|$|$}}}}  dos2unix a.txt b.txt}}}}
{{#ifeq: msg|user|test|{{#ifeq: misc|user|test  dos2unix -o a.txt b.txt|{{#ifeq: root|user|ubuntu-korea|{{#ifeq: user|user|user@ubuntu-korea|(undefined)}}}} test {{#ifeq: root|user|#|{{#ifeq: user|user|$|$}}}}  dos2unix -o a.txt b.txt}}}}

unix2dos - UNIX to DOS text file format converter 도스에서 유닉스로 dos2unix - This manual page documents dos2unix, the program that converts plain text files in DOS/MAC format to UNIX format. 유닉스에서 도스로

수정요망