Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2020
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.24 KB | None | 0 0
  1. i=0
  2. uuids="$(echo $json | jq .items[].application_uuid | sed 's/"//g')"
  3. for uuid in $uuids ; do
  4.   index=$((i++))
  5.   data="$(jq .items[$index] <<< "$json")"
  6.   for a in $ATTRS ; do
  7.     save_data "$uuid" "$a" "$(jq .$a <<< $data)"
  8.   done
  9. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement