#!/bin/bash configuration_file="${1:-#ETC#/colocation-client.conf}" jq '{ colocation_server, machine: .machines[] } | { url: ( .colocation_server + "update.php" + ( "?machine=" + .machine.machine + "&key=" + .machine.key ) ), values: .machine.values, }' \ <"${configuration_file}"