ezrosent / frawk

an efficient awk-like language
Apache License 2.0
1.24k stars 34 forks source link

CSV/TSV convenience variables #100

Closed Tyler-Hardin closed 1 year ago

Tyler-Hardin commented 1 year ago

It would be really nice to have $column_name work for csv and tsv. Could this be added?

ezrosent commented 1 year ago

so we unfortunately can't do $column_name as that's perfectly valid awk (x=1; print $x works like print 1), and it's a common-enough idiom that I don't think it makes sense to change the syntax.

I did add the -H option a while back which should help. see #31 for more context.