批量下载文件内的一些链接

for i in `cat test.txt`;do echo $i ;~/y.sh $i ;done

test.txt为YouTube视频的链接,每行一个视频链接。
y.sh内容如下:

[root@localhost aa]# cat ~/y.sh 
#!/bin/sh

/usr/local/bin/youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best'  -o "./%(playlist_title)s/%(title)s.%(ext)s" $1

标签: linux, bash, youtube-dl

添加新评论