dos2unix를 사용해야해서 toprodos를 설치했습니다.
그래도 dos2unix사용이 안됩니다.
설치는 sudo apt-get install tofrodos로 했구요,
Reading package lists… Done
Building dependency tree
Reading state information… Done
tofrodos is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 32 not upgraded.
의 상태로 나오는데…
여전히 dos2unix사용이 안되는데 어떻게하면 될까요?
tofrodos의 설치 파일을 살펴 보면 dos2unix 명령이 빠져 있습니다.
fromdos 또는 todos 명령어를 이용 하십시오 (todos는 fromdos의 심볼릭 파일입니다)
fromdos 파일이름
ubuntu@ubuntu:~$ cat dos2unix.sh
[code:o4lty6b5]#!/bin/sh
perl -pi -e ‘s/\r\n/\n/;’ $1[/code:o4lty6b5]