wget http:
must do it. It expands to wget http://example.com/directory/file1.txt http://example.com/directory/file2.txt ....
Alternatively, your current code should work fine if you delete the call exec, which is not necessary and does not do what you seem to think it is doing.
source
share