所以如果直接拿windows 編輯的檔案到linux 下用vi 開啟會發現換行地方會多出^M. 可以利用tr 指令來去除多餘的^M 符號 cat dos.txt | tr -d '\r' ...
確定! 回上一頁