I have a shell script that will download the files from S3 folder, after the download is complete I want to perform certain other actions
How can I write a shell script that will wait for the download to complete and execute the remainder of the script
S3SourcePath=$1 Targetlocation=$2
rm -frd $Targetlocation/*
aws s3 cp $S3SourcePath $Targetlocation --recursive
cd $Targetlocation
printf '%s\n' "$PWD"/* >upload.csv printf "%s\n" 1 i "File_or_Folder_Path" . w | ed upload.csv