View fetchsub.sh
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/sh | |
# Author: RA <ravageralpha@gmail.com> | |
# Author: Chris Yu <chrisyu.gm@gmail.com> | |
USAGE(){ | |
echo "Usage:$(basename $0) [-eng] [-suf] [-togbk] [-toutf8] files..." | |
echo "OPTIONS" | |
echo " -eng : download English subtitle, default is Chinese" | |
echo " -suf : add language suffix in subtitle file name" | |
echo " -togbk : try to convert file content from big5 to gbk with iconv" |