Skip to content

Files

Latest commit

e401c21 · Mar 2, 2021

History

History
16 lines (13 loc) · 430 Bytes

jq.md

File metadata and controls

16 lines (13 loc) · 430 Bytes

jq

Commands

  • input an HTML as a JSON value
echo '{"foo": "XXX"}' | jq --arg foo "$(cat index.html)" '.foo = $foo'

configuration="$(jq -n \
                 --arg pitch_stage "$PITCH_STAGE" \
                 --arg db_security_group "$DB_SECURITY_GROUP" \
                 '{Parameters: {
                    Stage: $pitch_stage,
                    DbSecurityGroup: $db_security_group,
                    }}' )"