Recent submissions

Comment · 10 years ago
The tail number is a prime number (in reference to Prime customers) and is also the year AMZN went public.
Comment · 11 years ago
Here's a solution using just one instance of jq+awk that handles the "multiple files" scenario and writes proper headers on each:

jq -r '.[]|[.timestamp,.name,.creditcard]|@csv'<data.json|awk -F, '{if ($3!=""){f=substr($1,2,10)".csv";gsub(/-/,"",f);gsub(/"/,"",$0);c="(echo name,creditcard;cat -)>>"f;print $2","$3|c}}'

Strangely, the OP's "solution" actually omits the quotes around the strings, which adds unnecessary complexity.

Comment · 11 years ago
If we're going for succinctness, you could combine these all together:

(echo '"Name","Credit Card"'; jq -r '.[] | select(.creditcard) | [.name, .creditcard] | @csv' data.json) >> `date +%Y%m%d`.csv

Comment · 12 years ago
Comment · 12 years ago
Congratulations on the launch! Also an Atlanta native and signed up!
Comment · 12 years ago
Comment · 14 years ago
or "sort -R"...
Comment · 14 years ago
Good luck -- looks interesting. "Documentary" misspelled, fwiw.
Comment · 14 years ago
Note that the $125 "gateway" fee is minor compared with the storage/transfer fees themselves - $0.14/GB/month for storage, for example. At that rate, a small 5 TB volume is already $700/month.
Comment · 15 years ago
I stopped reading after glancing at the caption underneath the article's image:

"Wherever Senturion is housed it probably looks a lot like this, but more ominous and with blinkier lights."

That this statement is less than rigorous doesn't speak well for the remainder of the article.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton