News for hackers. Stuff that matters.
Re:Shell Script Best Practices, from a decade of scripting t... by jjice on Thursday October 27, 2022 @10:20AM (#33357817)
> 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).

There are no comments on this comment yet.