David Arthur
public shellscript v1 · immutables3cmd ls s3://my-bucket | awk '{ if((strftime("%s")-mktime(gensub("-", " ", "g", $1) "-1 -1 -1")) > 2592000 ) { print $4 } }' | xargs s3cmd dels3cmd ls s3://my-bucket | awk '{ if((strftime("%s")-mktime(gensub("-", " ", "g", $1) "-1 -1 -1")) > 2592000 ) { print $4 } }' | xargs s3cmd del