解決/bin/bash^M: bad interpreter問題

問題緣由 windows環境下 shell腳本文件是dos格式,即每一行結尾以\r\n來標識,而unix格式的文件行尾則以\n來標識linux 查看腳本文件是dos格式仍是unix格式 一、 cat -A filename 從顯示結果能夠判斷,dos格式的文件行尾爲^M$,unix格式的文件行尾爲$;shell (1)、dos格式windows [root@localhost ~]# cat -A
相關文章
相關標籤/搜索