sh 检查是否有CRLF

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 检查是否有CRLF相关的知识,希望对你有一定的参考价值。

grep -U $'\x0D' file

以上是关于sh 检查是否有CRLF的主要内容,如果未能解决你的问题,请参考以下文章

sh 将CRLF行结尾转换为LF。

warning: LF will be replaced by CRLF

带有 CRLF 和 LF 文件的 Git 存储库?

sh 用于检查启动分区是否有足够剩余空间的脚本

[git] -- warning: LF will be replaced by CRLF in app/app.iml. The file will have its original line e

[git] warning: LF will be replaced by CRLF | fatal: CRLF would be replaced by LF[ git 处理和修改行结束符(CRLF