Hello,
Can someone explain how to distinguish a LF character and a CR/LF character in a text file from a shell script.
Thanks
Hello,
Can someone explain how to distinguish a LF character and a CR/LF character in a text file from a shell script.
Thanks
If you have GNU File installed, it will tell you in a nice human readable output.
$ file test.txt
test.txt: ASCII text
$ vi test.txt # :set ff=dos
$ file test.txt
test.txt: ASCII text, with CRLF line terminators