[PLUG] Translating ^M to \n [WORKING]
Robert Citek
robert.citek at gmail.com
Tue Aug 13 16:59:59 UTC 2019
Sounds like you used Emacs to do the equivalent of this:
< hatchery_returns-2019-08-12.csv \
tr -s '\r\n' '\n' |
sed -e 's/, /,/g;s/,$//' \
> hatchery_returns-2019-08-12.cleaned.csv
Is that right?
Regards,
- Robert
On Tue, Aug 13, 2019 at 8:37 AM Rich Shepard <rshepard at appl-ecosys.com>
wrote:
> On Tue, 13 Aug 2019, Rich Shepard wrote:
>
> > I'll use emacs' regex search/replace to replace the EOL with \n.
>
> Correction: it has the proper \n at the end of each long line, and
> following
> a comma and a space. Removing spaces and EOL commas makes for nice files.
>
> Rich
>
> _______________________________________________
> PLUG mailing list
> PLUG at pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
More information about the PLUG
mailing list