fex

Powerful field extraction tool for parsing structured text data

brewmacoslinux
Try with needOr install directly
Source

About

Powerful field extraction tool

Commands

fex

Examples

Extract the 2nd field from a comma-separated file$ fex -d, 2 data.csv
Extract multiple fields (1st and 3rd) from space-separated data$ fex 1 3 logfile.txt
Extract fields from a range using tab delimiter$ fex -d' ' 2-4 structured_data.tsv