headson

Display head or tail of structured data files (JSON, YAML, CSV)

brewmacoslinux
Try with needOr install directly
Source

About

Head/tail for structured data

Commands

headson

Examples

Show first 5 records from a JSON file$ headson -n 5 data.json
Display last 10 lines of a YAML file$ headson -t -n 10 config.yaml
Preview first 3 rows of a CSV file$ headson -n 3 records.csv