tuc

A faster alternative to cut for extracting fields from text

brewmacoslinux
Try with needOr install directly
Source

About

Text manipulation and cutting tool

Commands

tuc

Examples

Extract the first field from colon-separated values$ echo 'user:password:uid:gid' | tuc -f 1 -d ':'
Extract multiple fields (2nd and 4th) from space-separated data$ echo 'one two three four five' | tuc -f 2,4 -d ' '
Extract a range of fields from tab-delimited file$ tuc -f 1-3 -d $'\t' input.tsv