3 ms·
> I only use it to select the n'th word in a csv-like line. If it's not a CSV with quotes to allow for commas inside values (which I think AWK will also fail i
by jjice 4y ago
> I only use it to select the n'th word in a csv-like line.
If it's not a CSV with quotes to allow for commas inside values (which I think AWK will also fail in), you can use `cut`.
cut -d, -f n
To delimit on a comma and select the n'th field. Reads a bit easier IMO for that common AWK use case (which I used to use AWK for all the time).