Zoneless

文章列表

執行 shell script 時出現 syntax error near unexpected token `$'do\r' 錯誤

開始之前在 windows 寫完 shell script 後進 Ubuntu 測試,然後在 for 迴圈的 do 噴了這個錯誤。看後面的 \r 直覺是換行符號的問題,結果也真的是換行符號的問題。 處...