How can I detect dos line breaks in a file?
Posted
by chiggsy
on Stack Overflow
See other posts from Stack Overflow
or by chiggsy
Published on 2010-05-09T18:16:58Z
Indexed on
2010/05/09
18:28 UTC
Read the original article
Hit count: 311
I have a bunch of files. Some are unix line endings, many are dos. I'd like to test each file to see if if is dos formatted, before I switch the line endings.
How would I do this? Is there a flag I can test for? Something similar?
© Stack Overflow or respective owner