Scripting Question

Robert Parker rlp1938 at gmail.com
Mon Feb 16 08:39:21 UTC 2009


On Mon, Feb 16, 2009 at 3:11 PM, Steve Lamb <grey at dmiyu.org> wrote:
> Derek Broughton wrote:
>> Hal Burgiss wrote:
>>> cut -d, -f2,4,57,59,61 $csvfile |grep @
>
>> Cute :-)  There's always another, simpler, way...
>
>    Except, as pointed out, when there are embedded commas in a field.
> That is why none of the people suggesting Python suggested using
> split(',').  Do that once with a CSV with embedded commas and you go
> running to you local Python documentation to read up on the csv module.

Wouldn't that render a comma separated csv file useless no matter what you did?
Afaik there is an option to separate using tabs at creation time.

Bob Parker
-- 
In a world without walls who needs Windows (or Gates)? Try Linux instead!




More information about the ubuntu-users mailing list