Hi.
In my bash script I have a loop which downloads a few files in the background with 'wget'.
How can I make my script wait until all downloads are complete before it goes on?
I guess I have to use the 'wait' command after the loop in some way?
But I might need to get ahold of the process ID's?
I'm pretty new to this.
an example of the loop:
for I in 01 02 03
do
wget -b -a download.log this.is.an.url/$I.txt
done