Skip to content

Instantly share code, notes, and snippets.

@themegabyte
Created May 28, 2016 10:16
Show Gist options
  • Save themegabyte/7bfd979a1d7d22621d62d0cd69c11a4a to your computer and use it in GitHub Desktop.
Save themegabyte/7bfd979a1d7d22621d62d0cd69c11a4a to your computer and use it in GitHub Desktop.
youtube-dl-links-file-parser
#!/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