3 ms·
Simple pipeline prettied up a little. curl https://gist.githubusercontent.com/jorin-vogel/7f19ce95a9a842956358/raw/e319340c2f6691f9cc8d8cc57ed532b5093e3619
by greggyb 12y ago
Simple pipeline prettied up a little.
curl https://gist.githubusercontent.com/jorin-vogel/7f19ce95a9a842956358/raw/e319340c2f6691f9cc8d8cc57ed532b5093e3619/data.json |
cut -d, -f1,6 |
cut -d\" -f4,8 |
awk -F\" -e 'BEGIN {print "name,creditcard"};
{if (NF==2) print $1 "," $2}' \
> 20150425.csv