2019-06-14
方法一
dos2unix
方法二
sed -i 's/\r$//' filename
Explanation:
Option -i
is for in-place editing, we delete the trailing \r
directly in the input file. Thus be careful to type the pattern correctly.
2019-06-14
dos2unix
sed -i 's/\r$//' filename
Explanation:
Option -i
is for in-place editing, we delete the trailing \r
directly in the input file. Thus be careful to type the pattern correctly.
本文标题:'\r': command not found
本文链接:https://www.haomeiwen.com/subject/biopfctx.html
网友评论