I'm writing bash script and don’t know how to solve my problem.
I want to to download multiple files at the same time , but ... I want to save the files under modified names.
I have a variable with urls.
example.com/aaa.txt
example.com/ooo/bbbbbb.txt
example.info/c.txt
The order of the URL is important.
After downloading I want:
1.txt
2.txt
3.txt
I tested parallel and wget. But I do not know how to change the file names.
PS: Limit of 5 simultaneous downloads.