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

前端 未结 11 1053
一向
一向 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 00:56

    You can use xxd to show a hex dump of the file, and hunt through for "0d0a" or "0a" chars.

    You can use cat -v as @warriorpostman suggests.

提交回复
热议问题