Skip to main content
4 events
when toggle format what by license comment
Sep 1, 2024 at 12:19 comment added Ed Morton @Vilinkameni there's no indication in the question that this is to parse CSV in general (if there was then I'd have directed the OP to whats-the-most-robust-way-to-efficiently-parse-csv-using-awk) and it does answer the question by telling the OP to just do something simpler instead.
Sep 1, 2024 at 9:15 comment added Vilinkameni As I noted in my answer, if the intention is to parse CSV, this doesn't work for the following input: printf "a,b foo,\"not a foo, delimiter\"\nd,e,foo g\n". Also, this doesn't decisively answer the question "Can that be done in one sed command in general so that I do not need shell piping?"
Aug 31, 2024 at 12:49 history edited Ed Morton CC BY-SA 4.0
added 100 characters in body
Aug 31, 2024 at 12:43 history answered Ed Morton CC BY-SA 4.0