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$"
FUZZING.IN