Scripting Question

Steve Lamb grey at dmiyu.org
Mon Feb 16 08:11:50 UTC 2009


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.


-- 
         Steve C. Lamb         | But who can decide what they dream
       PGP Key: 1FC01004       |      and dream I do
-------------------------------+---------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090216/2e513995/attachment.sig>


More information about the ubuntu-users mailing list