I am trying to grant permissions to an existing account in s3.
The bucket is owned by the account, but the data was copied from another account\'s bucket.
Wh
aws s3api put-object-acl --bucket bucketname_example_3636 --key bigdirectories2_noglacier/bkpy_workspace_sda4.tar --acl bucket-owner-full-control
aws s3 ls s3://bucketname_example_3636 --recursive > listoffile.txt
sed 's/^(.*)$/aws s3api put-object-acl --bucket bucketname_example_3636 --key \1 --acl bucket-owner-full-control/g' listoffile.txt > listoffile_v2.txt;
sed '1 i\#!/bin/bash' listoffile_v2.txt > listoffile_v3.txt;
cp listoffile_v3.txt listoffile_v3.sh;
chmod u+x listoffile_v3.sh;
listoffile_v3.sh;