-
-
Save vreemt/ef405570189ba353309809d244381799 to your computer and use it in GitHub Desktop.
Download list of URLs from a txt file
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
#!/bin/bash | |
INPUT=$(find . -name "*.txt") | |
COUNT=1; | |
while IFS= read -r line | |
do | |
curl -O "$line" | |
let COUNT++ | |
done < "$INPUT" | |
echo "count $COUNT" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
count will count all lines (also
emptiesempties and things that fail to download)count will count all lines (also empties and things that fail to download)
Sandra-headscape commented on Nov 24, 2023