본문 바로가기

Useful Tips

/bin/bash^M: bad interpreter Error시

 

해당 shell script 파일을 vi editor로 열어서 아래와 같이 format을 unix 용으로 변경해 줍니다.

 

:set ff=unix