moissinac / csvfix

Automatically exported from code.google.com/p/csvfix
MIT License
0 stars 0 forks source link

feature request: using CSV with header, and -f to use those names #64

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

it would be great if I could use similar CSV:

<cut>
displayName,givenName,sn,mail
"Tamas Szerb",Tamas,Szerb,xxx@yyy.org
</cut>

and eg. ascii_table could automatically use the first line as a header, and 
with other commands, eg. instead of:

csvfix exclude -f 2 tst.csv

I could use this:

csvfix exclude -f givenName tst.csv

and I couldn't find any grepping tool, eg.

csvfix grep "mail=.*@" tst.csv

to find all the mail (4rd) column contains @

Thanks,

Tamas

Original issue reported on code.google.com by t...@rulez.org on 16 Jan 2013 at 1:26

GoogleCodeExporter commented 8 years ago
in the meantime I found csvfix find command, so please ignore my last request, 
however the -f "login" could be also useful to parse the header of the file 
automatically and use it as a field name instead of the field number.

Original comment by t...@rulez.org on 16 Jan 2013 at 2:01

GoogleCodeExporter commented 8 years ago
> eg. ascii_table could automatically use the first line as a header,

Please read the documentation - ascii_table can do this. And please post 
suggestions/questions in the support group at 
http://groups.google.com/group/csvfix and not here.

Original comment by nbutterworth1953@gmail.com on 16 Jan 2013 at 6:10

GoogleCodeExporter commented 8 years ago
and can I use therefore the

"csvfix find -f login" eg. to filter the "login" column?

VWOL
Tamas SZERB <toma@rulez.org>

Original comment by t...@rulez.org on 16 Jan 2013 at 7:32