There are various regex approaches to reading CSV in other threads on this forums. Given the variation within CSV dialects, however, I personally reach for the Python CSV reader, which does a pretty good job of detecting specific dialects and handling them correctly.
In a KM 'Execute shell script action', for example, something like this: