Hacker News new | ask | show | jobs
by jpxw 2210 days ago
What does this do that cut can’t?
3 comments

This is a poor question as it invokes the Turing tarpit. (Why using any language that is higher level than machine code?)

If it is more comfortable to use for some people then it’s a great invention.

Select fields from output with space-delimiters (commands like `docker images`, which have to be preprocessed with tr)
Nothing, but try doing a general version of:

    echo -e "foo   bar   baz" | choose -1 -2
With cut.

    echo -e "foo   bar   baz"  | xargs | cut -d\  -f1,2