Skip to content

Latest commit

 

History

History
62 lines (41 loc) · 1.13 KB

README.md

File metadata and controls

62 lines (41 loc) · 1.13 KB

ec: easy csv rendering

Purpose

GNU-like terminal tool for rendering CSV files

Usage

1. Parameter

$ ec my_data.csv

┌─────┬─────┬─────┐
│ ABC │ DEF │ GHJ │
└─────┴─────┴─────┘

2. Stdin

$ echo abc,def,ghj | ec

┌─────┬─────┬─────┐
│ ABC │ DEF │ GHJ │
└─────┴─────┴─────┘

It is designed to be used in a series of GNU commands:

echo "great,row,full,of,goodies\nboring,row,that,i,dislike" | grep great | ec

┌───────┬─────┬──────┬────┬─────────┐
│ GREAT │ ROW │ FULL │ OF │ GOODIES │
└───────┴─────┴──────┴────┴─────────┘

Help

$ ec --help
Usage of ec:
  $1 string
        filename
	ec my_csv.csv
  -f string
        filename
	ec -f my_csv.csv

Roadmap

  • Filter rows by search, retaining headers
  • tsv support
  • autodetect delimiter
  • styling parameter