Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
penguin_booze
on June 29, 2023
|
parent
|
context
|
favorite
| on:
The Awk Programming Language, Second Edition
I wish awk had support for addressing a range of fields, like from $1 to $7. `cut` supports it, FWIW.
mplanchard
on June 29, 2023
[–]
You can always loop through the fields, but it’s a little messy, especially for one-liners
penguin_booze
on June 29, 2023
|
parent
[–]
Yes, 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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: