SINCE=`date --date '-2 weeks +2 days' +%F 2>/dev/null || date -v '-2w' -v '+2d' +%F` bucket=<bucketname> aws s3api list-objects-v2 --bucket "$bucket" \ --query 'Contents[?LastModified > `'"$SINCE"'`]'
SINCE=`date --date '-2 weeks +2 days' +%F 2>/dev/null || date -v '-2w' -v '+2d' +%F` bucket=<bucketname> aws s3api list-objects-v2 --bucket "$bucket" \ --query 'Contents[?LastModified > `'"$SINCE"'`]'