table-fingerprint

A tiny shell script that lets you visualize cells in a table as pixels in an image.

The type of the cell corresponds to the color of the pixel:

% cat test.csv
Int Decimal String a b c  
2 1.61803 foo 1 0.05 foo  
3 2.71828 bar one 0.05 foo  
3 2.71828 bar one 0.05 foo  
3 2.71828 bar one 0.05 foo  
3 2.71828 bar one 0.05 foo  
3 2.71828 bar one 0.05 foo  
5 6.28318 baz 1 0 foo  
7 137.035 foo bar 1 0.05 7.00  
11 6.02e23 bar bar 1 0.05 foo overflow
% cat test.csv | table-fingerprint | topng > test.png
% cat test.csv | table-fingerprint | page
test.png

Assumes Plan 9 from User Space.

Inspired by

http://setosa.io/blog/2014/08/03/csv-fingerprints/

but doesn’t suck.