Fuzzing.in Logo FUZZING.IN
Back to Blog
Uncategorized

aws commands

Author Hardik Shah
August 03, 2020
1 min read

To list all folders:
aws s3 ls s3://bkt --recursive | tr -s ' ' | cut -d ' ' -f4- | grep "\/$" | sed 's/\/$//'

To list all files:
aws s3 ls s3://bkt --recursive | tr -s ' ' | cut -d ' ' -f4- | grep -v /$

To list all .json files:
aws s3 ls s3://bkt --recursive | tr -s ' ' | cut -d ' ' -f4- | grep ".json$"

To list all .json and all .yaml files:
aws s3 ls s3://bkt --recursive | tr -s ' ' | cut -d ' ' -f4- | grep -E "(.yaml|.json)$"

To list all files except .json files:
aws s3 ls s3://bkt --recursive | tr -s ' ' | cut -d ' ' -f4- | grep -v ".json$"

Tags:
Previous enable & disable hyper-v from command line
Next using pip with proxy

Related Posts