我正在写一个脚本来搜索一堆AWS账户的IP地址。我根据用户的输入设置jq命令。./aws_utils.sh: line 1434: jq -r '.Reservations[].Instances[].PrivateIpAddress': command not foundecho "Find IP Address in AWS"
我正在使用应用程序接口来检索和存储信息。目前,我们的设置是使用驼峰式大小写,而不是下划线。我正在使用jq处理我们的信息,但是我很好奇如何使用sub(regex, tostring)函数将JSON中的下划线替换为camelCase?jq '.[] | with_entries( if .key | contains("_") then