pk

Extract and transform fields from structured text data

brewmacoslinux
Try with needOr install directly
Source

About

Field extractor command-line utility

Commands

pk

Examples

Extract specific fields from CSV data$ pk -f 1,3 data.csv
Extract fields using custom delimiter$ pk -d ':' -f 1,5 /etc/passwd
Extract and reorder fields from structured text$ pk -f 3,1,2 input.txt