Created
May 28, 2016 10:16
-
-
Save themegabyte/7bfd979a1d7d22621d62d0cd69c11a4a to your computer and use it in GitHub Desktop.
youtube-dl-links-file-parser
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 | |
IFS=$'\n' | |
read -d '' -r -a lines < $1 | |
for link in ${lines[@]} | |
do | |
if [[ $link == *youtube.com* || $link == *facebook.com* ]]; then | |
(exec youtube-dl --no-warnings $link) | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment