Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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"
echo "<p><img src=\"$movie.jpg\"/></p>">>"$html"
done
echo "</body></html>">>"$html"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment