3 # Collects all the appropriate subtitle files in a given directory and
4 # its subdirectories, no matter what the filename is.
5 # Use this together as: mplayer -sub `subsearch.sh` movie
9 [ $1 ] && cd `dirname $1`
16 case "`echo $i | tr [:upper:] [:lower:]`" in
17 *.sub|
*.srt|
*.mps|
*.txt
) _sub_names
="$i,$_sub_names" ;;
26 # add subdirectories too
29 [ -d $dir ] && one_dir_search
32 _len
="`echo $_sub_names | wc -c`"
34 echo $_sub_names | cut
-b -"$_len"