[PLUG] Translating ^M to \n

Rich Shepard rshepard at appl-ecosys.com
Tue Aug 13 14:53:33 UTC 2019


On Mon, 12 Aug 2019, Rodney W. Grimes wrote:

> I think od -c does NOT output the \n.. no, looked closely at a hd of the
> file. First byte of the file is 0xa, A LF ok, so thats odd. After that the
> lines do appear to be seperated by 0x0d, which is CR all by itself, these
> are NOT CR-LF windows format files, the are CR seperated files from who
> knows what?

> My guess.. this was a browser downloaded .csv file?  So line
> endings have been mangled by the web.

file <filename> reports these are ASCII text, with very long lines, with CR,
LF line terminators.

My understanding is that CR/LF is DOS style.

Thanks,

Rich



More information about the PLUG mailing list