Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

175
Views
How to write a shell script for "AWS S3 Cp" and wait for completion

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

Clearing the target location files

rm -frd $Targetlocation/*

download the files from S3 to Local

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

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!