Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
#!/bin/sh[ $# -lt 3 ] && {echo >&2 "${0##*/} [-g GREY_VALUE] [-p PREFIX] [-s SUFFIX] START SID\TITLES..."exit 1}[ "$1" = '-g' ] &&{shiftuser_grey=$1[ "$1" == '-' ] && user_grey=255,0,255,255user_grey="-g $user_grey"shift}[ "$1" = '-p' ] &&{shiftprefix=$1shift}[ "$1" = '-s' ] &&{shiftsuffix=$1shift}start=$1subtitle=$2shift 2sudo dc stopi=$(($start))while [ $# -gt 0 ]doechodvdsubtitles -t $i -s $subtitle $user_grey -o "$prefix$1$suffix"let i++shiftdonesudo dc start