Linux
[Linux] 윈도우 작성파일 리눅스에서 에러나는 경우 '\r': command not found
개미맨
2019. 3. 26. 16:35
Windows 에서 작성한 파일 리눅스에서 에러가 발생하는 경우
에러 메시지 '\r': command not found 에러 발생
해결방법
리눅스 shell에서 아래 커맨드 입력
$sed -i -e 's/\r$//' test.sh
reference - https://www.snoopybox.co.kr/1613