aria2c - Any way to keep only list of failed downloads?
问题 I am using aria2c to download a quite large list of urls (~6000) organized in a text file. Based on this gist, I am using the following script to download all the files: #!/bin/bash aria2c -j5 -i list.txt -c --save-session out.txt has_error=`wc -l < out.txt` while [ $has_error -gt 0 ] do echo "still has $has_error errors, rerun aria2 to download ..." aria2c -j5 -i list.txt -c --save-session out.txt has_error=`wc -l < out.txt` sleep 10 done ### PS: one line solution, just loop 1000 times ###