📜  检查文件的行分隔符 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:45.502000             🧑  作者: Mango

代码示例1
file testFile.txt

# If file reports "CRLF line terminators", the file is DOS-style
# If file reports "CR line terminators", the file is Mac-style
# If file doesn't mention line terminators, the file is Unix-style