Skip to content

Instantly share code, notes, and snippets.

@alecbw
Last active September 11, 2022 18:31
Show Gist options
  • Save alecbw/9c71ccf905770e6514c271af645f00cc to your computer and use it in GitHub Desktop.
Save alecbw/9c71ccf905770e6514c271af645f00cc to your computer and use it in GitHub Desktop.

Revisions

  1. alecbw revised this gist Sep 11, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion checkUser.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    function checkUser() {
    aws dynamodb get-item --table-name userTable --key '{"email": {"S": "'"$1"'"}}' | jq '.Item.field_1 + " " + .Item.field_2_int.N'
    aws dynamodb get-item --table-name userTable --key '{"email": {"S": "'"$1"'"}}' | jq '.Item.field_1.S + " " + .Item.field_2_int.N'
    }

    # to use:
  2. alecbw created this gist Sep 11, 2022.
    6 changes: 6 additions & 0 deletions checkUser.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    function checkUser() {
    aws dynamodb get-item --table-name userTable --key '{"email": {"S": "'"$1"'"}}' | jq '.Item.field_1 + " " + .Item.field_2_int.N'
    }

    # to use:
    checkUser [email protected]