Created
January 25, 2019 20:10
-
-
Save janbaer/5f8cf777e927413a4017171aa7250743 to your computer and use it in GitHub Desktop.
Read all lines from the passed file and do something with each line
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
while IFS='' read -r line || [[ -n "$line" ]]; do | |
youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' $line | |
done < "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment