- It will output
with CRLF line endingsterminators
for DOS/Windows line terminators. - It will output
with CR line endingsterminators
for MAC line terminators. - It will just output
text
for Linux/Unix "LF" line terminators. (So if it does not explicitly mention any kind ofline terminators
then this means: "LF line terminators".)
$ echo -ne '1\n2\r\n3\r' | file -k -
/dev/stdin: ASCII text, with CRLF, CR, LF line terminators
Let's try a little quiz: I've got some files. And one of these files has different line endingsterminators. Which one?
Huh. It's not telling me the line endingsterminators. And I already knew that those were cert files. I didn't need "file" to tell me that.
So that tells you that: yup, "0.example.end.cer" must be the odd man out. But what kind of line endingsterminators are there? Do you know the dos2unix output format by heart? (I don't.)
Excellent! Now we know that our odd file has DOS (CRLF
) line endingsterminators. (And the other files have Unix (LF
) line endingsterminators. This is not explicit in this output. It's implicit. It's just the way file
expects a "regular" text file to be.)
Good. Now all certs have Unix line endingsterminators.