Skip to content

Instantly share code, notes, and snippets.

@jankowskib
Last active October 31, 2017 19:18
Show Gist options
  • Save jankowskib/af44f01cb25e0a0b2238f33176f95ce4 to your computer and use it in GitHub Desktop.
Save jankowskib/af44f01cb25e0a0b2238f33176f95ce4 to your computer and use it in GitHub Desktop.
Search for file names in github
for i in {1..34}; do curl -v -H "Authorization: token XXXX" -H 'Accept: application/vnd.github.mercy-preview+json' "https://api.github.com/search/code?q=cmd+in:path+path:include/dt-bindings/lcm/+extension:dtsi&page=$i" >> test2.json; done
#then
cat test2.json | ack 'name.*dtsi' | sort -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment