CmdID

CmdID / Commands

tuc

Cut text (or bytes) where a delimiter matches, then keep the desired parts. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

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.

Cut and rearrange fields

echo "foo bar baz" | tuc --delimiter ' ' --fields 3,2,1Identify

Replace the delimiter space with an arrow

echo "foo bar baz" | tuc --delimiter ' ' --replace-delimiter ' ➡ 'Identify

Keep a range of fields

echo "foo bar baz" | tuc --delimiter ' ' --fields 2:Identify

Cut using regex

echo "a,b, c" | tuc --regex '[, ]+' --fields 1,3Identify

Emit JSON output

echo "foo bar baz" | tuc --delimiter ' ' --jsonIdentify