February 7, 2016

Intro to Shell Programming: Writing a Simple Web Gallery - page 4

A Simple Script

  • March 12, 2009
  • By Akkana Peck

#! /bin/sh

# Minimalist image gallery script, from Akkana Peck's Linux Planet
# article. This version improves on the one in the article by adding

# quotation marks around the image names in the tags,
# by using \ backslash escapes to make the quotes come through.
# It also adds HTML headers and footers; describing them would have
# made the web article too long.

echo "<html> <head> <title> My Images</title></head><body> " >index.html

echo "<h1> My Images</h1> " >> index.html

Sitemap | Contact Us