【问题标题】:How to get the information using JQ如何使用 JQ 获取信息
【发布时间】:2016-11-01 09:47:39
【问题描述】:

我有一个网址http://vis-vip.xxx.xx.net:8080/xx/info,它返回以下结果 {"application.name":"var-integration-xx","application.version":"1.13.0-241","os.name":"Linux"}.

我需要从上面的结果中获取应用程序版本。 我已经安装了 JQ。有没有办法通过 JQ 获取版本信息?

【问题讨论】:

标签: json parsing key jq


【解决方案1】:
jq -r '."application.version"' 

1.13.0-241

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2011-12-28
  • 1970-01-01
  • 1970-01-01
  • 2018-07-10
  • 1970-01-01
  • 2021-01-09
  • 2013-04-23
相关资源
最近更新 更多