![]() And I already knew that those were cert files. ![]() (By the way: this is what one of my typical "certificate work" directories looks like.) And one of these files has different line endings. Let's try a little quiz: I've got some files. The trouble with regular file is this: Sometimes it's trying to be too smart/too specific. I sometimes have to check this for PEM certificate files. (So if it does not explicitly mention any kind of line endings then this implicitly means: "LF line endings".) And for Linux/Unix line "LF" it will just output text.It will output with CR line endings for MAC line endings.It will output with CRLF line endings for DOS/Windows line endings.Short version: file -k somefile.txt will tell you. But for tough cases try file -k or dosunix -ih. Try file, then file -k, then dos2unix -ihįile will usually be enough.
0 Comments
Leave a Reply. |