How to pass value of a variable in jq using shell

后端 未结 0 1741
北海茫月
北海茫月 2020-12-17 16:13

I need to execute cat build.json | jq \'.Stage1.Name\' for 5 times

for (( c=1; c<5; c++ ))
do
 echo $c
cat build.json | jq \'.Stage${c}.Name\'         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题