Last active
August 20, 2021 09:45
-
-
Save loretoparisi/e892ef134c289165c188238250dedada to your computer and use it in GitHub Desktop.
AWS S3 CAT to BASH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function __awscat { | |
if [ "$1x" != 'x' ]; then | |
aws s3 cp --quiet "$1" /dev/stdout | |
fi | |
} | |
__awscat $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
USAGE
Combined to
jq
to pretty print a json file./awscat.sh s3://my-bucket/my-folder/my-file | jq