I am stuck with my windows batch script :(
I want to check if a text file contains unix style line endings (LF)
and windows style line endings (CR LF).
I am able to detect windows style line endings with this command:
for /f "tokens=*" %%t in ( 'findstr /r "$" test.txt ) do set win_line_ending=1
But I don't know how to detect the unix style line ending.
Help is really appreciated!