[mdlug] csv files

Carl T. Miller carl at carltm.com
Tue Dec 8 20:13:09 EST 2009


Aaron Kulkis wrote:
> Carl T. Miller wrote:
>> Are there any good command line tools to work with csv files?
>
> AT&T developed some commands for doing this decades ago.
>
> man cut
>    look at the flag to set the field separator to ','

Of course this wouldn't work correctly if there were a
comma inside the data, which is allowed in csv files.

For example this data wouldn't parse correctly using cut.

"Name","Age","Description"
"Fred",3,"A great, big thing"

c





More information about the mdlug mailing list