Skip to content

Instantly share code, notes, and snippets.

@renormalist
Created April 18, 2012 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save renormalist/2416828 to your computer and use it in GitHub Desktop.
Save renormalist/2416828 to your computer and use it in GitHub Desktop.
Use dpath to filter metacpan query results
curl -s -XPOST http://api.metacpan.org/release/_search -d'{ "query": { "match_all": {} }, "size": 999, "fields": ["download_url"], "filter": { "term": { "distribution": "MooseX-NonMoose" } } }' | dpath -i json -o flat '//download_url'
@ctaulien
Copy link

hi steffen, dpath als cpan-modul habe ich, aber so wie du es aufrufst scheints ne command variante (.sh oder so) zu geben.

@ctaulien
Copy link

ok i found App::DPath 👍

@renormalist
Copy link
Author

Oh, und ich hab nicht gesehen, dass hier einer kommentiert, meine github notification settings scheinen fragil...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment