Re:CSV Challenge
by jondumbau on Saturday April 25, 2015 @10:52AM
(#9438449)
curl -s https://gist.githubusercontent.com/jorin-vogel/7f19ce95a9a84... | perl -MJSON -e 'print join("\n",map {($_->{creditcard})?qq("$_->{name}","$_->{creditcard}"):()}{name=>Name=>creditcard=>q(Credit Card)},@{decode_json(join("",map{chomp;$_}<>))}) . "\n"' > $(date +'%Y-%m-%d').csv
[ Parent
| on HN ]
There are no comments on this comment yet.