I have about 10 links in file links.txt. I download them through    cat links.txt | xargs -i --max-procs=4 bash -c wget {}I whould like do it repeatedly likewhile :do   cat links.txt | xargs -i --max-procs=4 bash -c wget {}doneBefore the next iteration of while loop it waits all subprocesses to be finished. But I would like to continue downloading (take url from beginning of the file) when there is an available thread. How to do that? May be I can make infinite pipe of strings?
How to create infinite pipe of strings in bash
bash;xargs