Skip to content

Instantly share code, notes, and snippets.

@spalenza
Created May 25, 2014 14:30
Show Gist options
  • Save spalenza/fceadf42a74af80c43ef to your computer and use it in GitHub Desktop.
Save spalenza/fceadf42a74af80c43ef to your computer and use it in GitHub Desktop.
Split and download files with wget
# 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