Hacker News new | ask | show | jobs
by dbro 4461 days ago
that's exactly what https://github.com/dbro/csvquote does for commas and newlines both.
1 comments

Why use this instead of sed, awk, flex, lua, etc.?

sed does the job and on almost all UNIX clones it never needs to be installed.

Because it's already there.