Created
February 10, 2017 06:34
-
-
Save ismyrnow/f41de9c03739c4fc2d53bbd634edaaf8 to your computer and use it in GitHub Desktop.
Given a space-separated list of URL and filename pairs, download them in sequence
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
# feed each line of text file to sed, which extracts url/filename, and outputs a curl command, which is fed to shell. | |
cat url-filename-list.txt | sed 's/\([^ ]*\) \(.*\)/curl "\1" -o "\2"/' | sh |
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
http://www.example.com/1293859 nicename.mp3 | |
http://www.example.com/2093028 nicename.mp3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment