Last active
April 18, 2019 11:08
-
-
Save loretoparisi/6ba7de22c00352313c38a4f7b82e9693 to your computer and use it in GitHub Desktop.
AWS CAT - Cat a file from Aws Bucket in 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
function __awscat { | |
if [ "$1x" != 'x' ]; then | |
aws s3 cp --quiet "$1" /dev/stdout | |
fi | |
} | |
alias awscat='__awscat' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage:
Place this in your bash profile and use like
so that you can do pipes, grep, etc.