Skip to content

Instantly share code, notes, and snippets.

View make-thumb-html.sh
#!/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"
View make-thumb.sh
#!/bin/bash
usage()
{
cat << EOF
usage: $0 [options] -i MOVIE-FILE
OPTIONS:
-h show this message
-i input movie file