Skip to content

Files

Latest commit

d3d076f · Oct 20, 2019

History

History
This branch is 251 commits behind hastagAB/Awesome-Python-Scripts:master.

Pretty-CSV

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Oct 20, 2019
Oct 20, 2019

Pretty CSV

This script pretty-prints CSV input into a table output for easier readibility. The script reads from stdin and writes into stdout for pipe compatibility.

Examples

Read from local file

python3 pretty-csv.py < csv-file.csv

Read from curl

curl -fsSL https://people.sc.fsu.edu/~jburkardt/data/csv/cities.csv | python3 pretty-csv.py

Pipe to less for better navigation

python3 pretty-csv.py < long-csv-file.csv | less -S