JQ - Read multiple arrays with bash

0

Edit: I was looking for other methods to treat Json and I ended up with [x["_source"]["'$1'"] for x in obj["hits"]["hits"]]: - I was curious and I was testing ... It worked beauty adding jq '.files['$X'].projectID'

Good. I'm developing a script to automatically download files listed in a .json

I'm working on using Unix JQ to read and treat Json. I'm stuck at the point in having JQ read the first array run the download command and then skip to the next.

I need the X in jq '.files[X].projectID' to start at 0 and go to a number that I determine in a variable.

My current code: GhostBin Paste

Used Json File: Json

    
asked by anonymous 20.08.2018 / 22:52

0 answers