Last active
February 4, 2023 00:08
-
-
Save mihow/5baf178d1d36215bdbd8699669598c69 to your computer and use it in GitHub Desktop.
Bash Parallel File Download
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# USAGE | |
# bash ./parallel_download.sh url_list.txt | |
set -o nounset | |
set -o errexit | |
FILELIST=$1 | |
cat $FILELIST | xargs -n 1 -P 4 wget --no-clobber |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment