Json – bash & jq: add attribute with object value
I'm looking for a solution to add a new attribute with a JSON object value into an existing JSON file. My current script: if [ ! -f "$src_file" ]; then echo "Source file $src_file does not exists" exit 1 fi…