I'm using s3cmd top copy files to S3 but I want to exclude all files that begin with 00 and are a JPEG.
I'm trying --exclude=00*.jpg with no success.
Any idea how to do this?
shopt -s extglob
How about :
for n in $(/bin/ls | grep -v "^00.*.jpg"); do s3cmd $n; done
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
3 years ago