Cut text (or bytes) where a delimiter matches, then keep the desired parts. A more user-friendly and powerful version of
cutwith sensible defaults. More information: https://github.com/riquito/tuc.
echo "foo bar baz" | tuc {{[-d|--delimiter]}} '{{ }}' {{[-f|--fields]}} {{3,2,1}}
space with an arrow:echo "foo bar baz" | tuc {{[-d|--delimiter]}} ' ' {{[-r|--replace-delimiter]}} ' ➡ '
echo "foo bar baz" | tuc {{[-d|--delimiter]}} ' ' {{[-f|--fields]}} {{2:}}
echo "a,b, c" | tuc {{[-e|--regex]}} '{{[, ]+}}' {{[-f|--fields]}} {{1,3}}
echo "foo bar baz" | tuc {{[-d|--delimiter]}} '{{ }}' --json