I am trying to make a script (batch in windows) that download 5 text files using wget, and do some operations to each one, so I am thinking to do this with a loop just like this
set i=0
:begin
set /a i=%i%+1
if %i% equ 5 exit
wget ".....file1.txt"
goto operations
:operations
stuff
stuff
goto begin
- operation consist of getting infromation from the text using grep and sed and saving it to text
well, it should work, but this will take a lot of time, I want the batch to do it in an efficient way, because in this way it will download one (take some time) and will do the opeartions. What I want to do is to make it a multi threaded, I mean to make it do these 5 files (download+operations) simultaneously.
thanks