0
I have two s3 buckets in same account. One bucket having multiple images with name with
00000-file01.jpg
11111-file90.jpg
12321-file33.jpg
12345-file80.jpg
55555-file29.jpg
Second bucket has some directories same as above files first column like
aws s3 ls s3://bucket2/
PRE 00000/
PRE 12345/
So based on this column, I want to move those bucket1 files to particular that directory in second bucket through shell script
For example,
s3://bucket1/00000-file01.jpg move to s3://bucket2/00000/00000-file01.jpg
s3://bucket1/12345-file80.jpg move to s3://bucket2/12345/12345-file80.jpg
Thanking you in advance.