bash 파일 내의 띄어쓰기 등의 문제로 생기는 에러 do
a syntax error: syntax error: unexpected end of file (expecting "do")
다음으로 해결 할 수 있다.
cat yourscript.sh | tr -d '\r' >> yournewscript.sh
'Program > Ubuntu' 카테고리의 다른 글
| shell script error expecting "do" (0) | 2024.02.20 |
|---|---|
| 여러 tar 파일 압축 해제 (0) | 2023.08.01 |
| pytorch DDP, conda 관련 에러 및 해결 사항 2 (0) | 2021.07.20 |
| pytorch DDP, conda 관련 에러 및 해결 사항 (0) | 2021.07.12 |
| Anaconda 설치 및 init 안될 때 (0) | 2021.06.25 |
