TeRiTeRi

  1. 首页
  2. 未分类
  3. 正文

JQ命令使用说明

2021年9月13日 1378点热度 1人点赞 0条评论
#安装
https://centos.pkgs.org/7/epel-x86_64/jq-1.6-2.el7.x86_64.rpm.html
https://centos.pkgs.org/7/epel-x86_64/oniguruma-6.8.2-1.el7.x86_64.rpm.html
yum install oniguruma-6.8.2-1.el7.x86_64.rpm jq-1.6-2.el7.x86_64.rpm
#测试
echo '{"fruit":{"name":"apple","color":"green","price":1.20}}' | jq '.'
curl http://api.open-notify.org/iss-now.json | jq '.'
echo '{"fruit":{"name":"apple","color":"green","price":1.20}}' | jq '[.fruit.name,.fruit.color]'
标签: 暂无
最后更新:2021年9月13日

kamisamak

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

COPYRIGHT © 2023 TeRiTeRi. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang