Skip to content

Command line tool to arrange data from CSV format into a neatly aligned table

License

Notifications You must be signed in to change notification settings

Bleskocvok/tabcat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tabcat

Convert data in CSV format into a neat table.

Usage

Suppose you have data in CSV format, such as this:

numbers,a,words
1,b,thing
40,c,sea
66,d,car
1024,e,ultralongword

Using tabcat you can arrange it in a nice table. The program expects the data either on standard input (stdin) or in a file. To pass the data to tabcat, you can use these commands for example:

$ cat data.csv
numbers,a,words
1,b,thing
40,c,sea
66,d,car
1024,e,ultralongword

$ tabcat data.csv
┌─────────┬───┬───────────────┐
│ numbers │ a │ words         │
├─────────┼───┼───────────────┤
│       1 │ b │ thing         │
│      40 │ c │ sea           │
│      66 │ d │ car           │
│    1024 │ e │ ultralongword │
└─────────┴───┴───────────────┘

About

Command line tool to arrange data from CSV format into a neatly aligned table

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages