Skip to content

Instantly share code, notes, and snippets.

@ckolderup
Created October 9, 2014 20:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ckolderup/efb9ff0635eee61ab3fb to your computer and use it in GitHub Desktop.
Save ckolderup/efb9ff0635eee61ab3fb to your computer and use it in GitHub Desktop.
get titles of all top hacker news stories
curl -s -S "https://hacker-news.firebaseio.com/v0/topstories.json" | jq ".[]" | xargs -I % curl -s -S "https://hacker-news.firebaseio.com/v0/item/%.json" | jq ".title"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment