CRLF line terminators導致shell腳本報錯:command not found

Linux和Windows文本文件的行結束標誌不同。在Linux中,文本文 件用"/n"表示回車換行,而Windows用"/r/n"表示回車換行。有時候在Windows編寫shell腳本時需要注意這個,否則shell腳本 會報"No such file or directory"或"command not found line x"之類的錯誤,如果不知曉前因後果,肯定會被這個折騰得相當鬱悶。如下所
相關文章
相關標籤/搜索