4 ms·
I wish awk had support for addressing a range of fields, like from $1 to $7. `cut` supports it, FWIW.
by penguin_booze 3y ago
I wish awk had support for addressing a range of fields, like from $1 to $7. `cut` supports it, FWIW.
- mplanchard 3y agoYou can always loop through the fields, but it’s a little messy, especially for one-liners
- penguin_booze 3y agoYes, that's an option. The range lookup is an ergonomic feature. Imagne what it would have been like, if we couldn't do foo[-3:] in Python.