Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
usage()
{
cat << EOF
usage: $0 [options] -i MOVIE-FILE
OPTIONS:
-h show this message
-i input movie file
#!/bin/bash
html="movie-index.html"
echo "<html><head></head><body>">"$html"
for movie in *.avi; do
echo "--> $movie"
name=$(basename "$movie" .avi)
make-thumb.sh -i "$movie"
echo "<h1><a href=\"http://www.imdb.com/find?q=$name&s=tt\">$name</a> [<a href=\"$movie\">Play</a>]</h1>">>"$html"