Linux – 检查文件末尾是否有换行符
发布时间:2020-12-13 19:23:26 所属栏目:Linux 来源:网络整理
导读:参见英文答案 How to detect file ends in newline?????????????????????????????????????7个 我有两个文件,一个有换行,一个没有: 文件:text_without_newline $root@kali:/home#cat text_without_newlineThis is a TestfileThis file does not contain a n
参见英文答案 > How to detect file ends in newline?????????????????????????????????????7个 文件:text_without_newline
文件:text_with_newline
是否有命令或函数来检查文件末尾是否有换行符? 最佳答案
只需输入:
如果有换行符,则以$符号结尾. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |