Created
May 25, 2014 14:30
-
-
Save spalenza/fceadf42a74af80c43ef to your computer and use it in GitHub Desktop.
Split and download files with wget
This file contains hidden or 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
# Split string by '|' | |
IFS='|' read -a array <<< "strig" | |
# Download | |
for element in "${array[@]}"; do wget "$element"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment