Skip to content

Instantly share code, notes, and snippets.

@miceno
Created December 27, 2017 12:33
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 miceno/e7c75afe2a806803815e0337a9305bdf to your computer and use it in GitHub Desktop.
Save miceno/e7c75afe2a806803815e0337a9305bdf to your computer and use it in GitHub Desktop.
Extract json text value
echo '{"count":"7363","_shards":{"total":1,"successful":1,"failed":0}}' | sed -e 's/^.*"count":"\([^"]*\)".*$/\1/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment