1

So, let's say I have an array with a list of URLs, and I want to use something such as GNU parallel to download the URLs in parallel. A command like this would do the trick.

parallel -u wget -qc --show-progress ::: "${URLs[@]}"

The only issue with this command is while the progress of the commands is shown (especially since -u shows the output as it happens rather than waiting) the output of the commands all go to the same line. This results in a scenario in which when one wget instance outputs it overwrites the progress of the previous wget output on the tty. So, I was wondering how to have each wget output on it's own line at the same time?

1 Answer 1

3
parallel --ll wget -qc --show-progress ::: "${URLs[@]}"

The --ll option is in alpha testing, but works in my test.

2
  • Thanks. I should mention that this didn't work when using parallel from Ubuntu's apt repository (on 22.04). I had to download it from the GNU website and compile it. Commented Apr 12, 2023 at 15:19
  • Exactly what was needed; works on Fedora 40. parallel --version - GNU parallel 20230822 uname -r - 6.8.11-300.fc40.x86_64 Commented Jun 29, 2024 at 2:55

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.