snippets/old_snippets/choose-over-awk.en.md

508 B

title seo_description date draft snippet_types
choose over awk Why I use choose instead of awk now days. 2024-03-04T11:52:22+01:00 false
awk
choose

Sometimes typing out awk '{print $1}' just takes too long. Today I decovered choose. It makes selecting a field from an output much faster.

Now instead of:

$ gss | rg awk | awk '{ print $2 }' | xargs hx

I run:

$ gss | rg awk | choose 1 | xargs hx