How to find out line-endings in a text file?

前端 未结 11 990
一向
一向 2020-11-28 00:15

I\'m trying to use something in bash to show me the line endings in a file printed rather than interpreted. The file is a dump from SSIS/SQL Server being read in by a Linux

11条回答
  •  渐次进展
    2020-11-28 01:19

    Ubuntu 14.04:

    simple cat -e works just fine.

    This displays Unix line endings (\n or LF) as $ and Windows line endings (\r\n or CRLF) as ^M$.

提交回复
热议问题