[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#6277: cut

From: Pádraig Brady
Subject: bug#6277: cut
Date: Thu, 27 May 2010 16:08:35 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20100227 Thunderbird/3.0.3

On 27/05/10 04:00, sandy bas wrote:
> Dear People:
> Comma delimited files often have fields of the form "big,black,bear" where the
> commas within the quotes are not delimiters. A useful option in cut would
>  be to ignore the commas (delimiters) within the quotation marks.
>   I would be glad to put it in if you would like the option.

Hmm, the CSV format is a bit more complicated than that
so as to support " and \n within fields also.
It would be more general I think to have a separate tool
to parse CSV to a format more easily usable on the shell,
and that it turn could be passed to cut -d, column -s, ...

Aha, the csvutils command from here seems to do this:


reply via email to

[Prev in Thread] Current Thread [Next in Thread]