[PLUG] Translating ^M to \n

alan at clueserver.org alan at clueserver.org
Tue Aug 13 15:33:35 UTC 2019


Have you looked at dos2unix?

> On Mon, 12 Aug 2019, Rodney W. Grimes wrote:
>
>> # tr -d "\r" < hatchery_returns-2019-08-12.csv >
>> hatchery_returns-2019-08-12.clean
>> # file hatchery_returns-2019-08-12.clean
>> hatchery_returns-2019-08-12.clean: ASCII text, with very long lines
>
> Rod,
>
> Here,
> tr -d "\r" < hatchery_returns-2019-08-12.csv >
> hatchery_returns-2019-08-12.clean
> followed by
> file hatchery_returns-2019-08-12.clean
> shows
> hatchery_returns-2019-08-12.clean: ASCII text, with very long lines, and
> no
> line terminators
>
> Isn't that interesting?
>
> Will try dd next.
>
> Thanks,
>
> Rich
>
>
> _______________________________________________
> PLUG mailing list
> PLUG at pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>


Q: Why do programmers confuse Halloween and Christmas?
A: Because OCT 31 == DEC 25.




More information about the PLUG mailing list