Using this format I need to write a bash script where I can pass Bucketname and FilesNames as text files and it would run it as BucketName1/File1,File2.. FileN BucketName1/File1,File2.... FileN
Below is what I have written. But I am not getting the required Output.
#!/bin/bash
BucketName=$1
FileName=$2
while IFS= read -r FileName
do
aws s3 cp s3://${BucketName}/${FileName} .
done