tuc Command Examples

Cut text (or bytes) where a delimiter matches, then keep the desired parts. A more user-friendly and powerful version of cut with sensible defaults. More information: https://github.com/riquito/tuc.

echo "foo bar baz" | tuc -d '{{ }}' -f {{3,2,1}}

echo "foo bar baz" | tuc -d ' ' -r ' ➡ '

echo "foo bar baz" | tuc -d ' ' -f {{2:}}

echo "a,b, c" | tuc -e '{{[, ]+}}' -f {{1,3}}

echo "foo bar baz" | tuc -d '{{ }}' --json