Created
April 3, 2012 16:40
-
-
Save lowstz/2293472 to your computer and use it in GitHub Desktop.
配合xunlei-lixian可以批量下载符合关键字的任务
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 | |
# | |
## 这个脚本配合xunlei-lixian可以批量下载符合关键字的任务 | |
## https://github.com/iambus/xunlei-lixian | |
## 感谢iambus写出如此好用的神器 | |
# | |
## linux或mac下批量添加人人影视ed2k的chrome插件 | |
## http://disinfeqt.com/yyets/ | |
if [ $# -eq 0 -o $# -gt 9 ]; then | |
echo "用法: mlx [keyword] [keyword]" 1>&2 | |
echo "关键字数量必须在1~9个之间" 1>&2 | |
exit 1 | |
fi | |
for taskid in $(lx list | egrep "$1|$2|$3|$4|$5|$6|$7|$8|$9" | grep -o "^[0-9]\+" | tr '\n' ' ') | |
do | |
lx download $taskid | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment