Skip to content

Instantly share code, notes, and snippets.

@DinosaurDad
DinosaurDad / aws-s3-delete-files-with-extension.sh
Created January 15, 2018 20:57
AWS - S3 - Delete files with extension
aws s3 rm s3://somebucket/somefolder/ --recursive --dryrun --exclude "*" --include "*.json"
@DinosaurDad
DinosaurDad / splitstring.sh
Created December 18, 2013 19:44
Split a value into multiple variables in a shell script. Orginally available on StackOverflow: http://stackoverflow.com/a/10520718/464827
STR=foo-bar
var1=${STR%-*}
var2=${STR#*-}