:set fileforamt=unix

:set ff=unix

 

-------------------------------------

 sed -i 's/\r$//' [파일명]

 

https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=muri1004&logNo=220690434778 

 

[에러] ^M bad interpreter 에러 해결 방법

bash 스크립트 파일을 실행하려는데 에러가 난다. 에러메세지  $ ./run.sh bash: ./run.sh: /bin/bash...

blog.naver.com

https://gethlemn.tistory.com/66

 

/bin/bash^M: bad interpreter: No such file or directory 해결 방법

[원인] Window 환경에서 sh 작성 후, linux 환경에서 실행하여 발생한 문제이다. window에서 사용한 개행 문자가 linux에서는 인식되지 못해 발생하는 문제이다 [해결방법] 1. vi에서 ^M 삭제하기 (1) vi -b [

gethlemn.tistory.com

https://velog.io/@dailylifecoding/Git-Bash-Window-git-bash-vim-fileformat-change-to-dos

 

[Git Bash (Window)] vim의 fileformat=dos 변경 필요성과 방법

git bash 에 기본으로 내장된 vim 편집기의 fileformat을 window에 적합하게 변경헤보자.

velog.io

https://gethlemn.tistory.com/66

 

/bin/bash^M: bad interpreter: No such file or directory 해결 방법

[원인] Window 환경에서 sh 작성 후, linux 환경에서 실행하여 발생한 문제이다. window에서 사용한 개행 문자가 linux에서는 인식되지 못해 발생하는 문제이다 [해결방법] 1. vi에서 ^M 삭제하기 (1) vi -b [

gethlemn.tistory.com

 

+ Recent posts