thesuhu

jq CentOS

Oct 17th, 2020
415
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.28 KB | None | 0 0
  1. # install jq
  2. sudo yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
  3. sudo yum install jq -y
  4. jq --version
  5.  
  6. # usage
  7. $ echo '{
  8. "response": [{
  9. "id": "1",
  10. "name": "Rachel Green"
  11. }, {
  12. "id": "2",
  13. "name": "Sheldon Cooper"
  14. }]
  15. }' | jq .'response'
  16.  
Add Comment
Please, Sign In to add comment