D=`pwd` D=`basename $D` D=`echo $D | sed -e 's/_/ /g' | sed -e 's/-/ /g'` rm keywordsunsorted.html keys TYR=`date +%Y` cat << EOF > NameIndex.html $D name index

$D name index


© Copyright 1996-$TYR Kerry Raymond and David Horton
EOF for i in *.[Jj][Pp][Gg] do j=`echo $i | sed -e 's/\.[Jj][Pp][Gg]//' ` rdjpgcom "$i" | grep -vi "research contact" | grep -vi "research notes" | grep -vi copyright | grep -vi baptist | grep -vi presbyterian | grep -iv methodist | grep -iv apostolic | grep -iv lutheran | grep -iv catholic | grep -iv columbarium | grep -iv cemetery | grep -iv anglican | grep -iv uniting | grep -iv crematorium | sed -e 's/ /\n/g' | tr a-z A-Z | grep -o "[A-Z][A-Z'][A-Z-]*[A-Z]" | sort -u > keys rdjpgcom "$i" | grep -v '^$' | tr '\n\r' '~~' > /tmp/text.$$ text="`cat /tmp/text.$$`" rm /tmp/text.$$ for k in `cat keys` do if grep -i "^$k$" ../templates/exclusions > /dev/null then true else echo "" #echo "" fi done done >> keywordsunsorted.html LANG=C export LANG sort -udf < keywordsunsorted.html | tr '~' '\n' >> NameIndex.html cat << EOF >> NameIndex.html
Alphabetical index of given names, surnames and placenames
$k $j
$text
$k$j$text


EOF if [ -r intro.html ] then cat intro.html | grep -vi "Select images from the left" | grep -v 'ames in.*order' >> NameIndex.html fi cat << EOF >> NameIndex.html

All the photos
Names in cemetery order
All the cemeteries

Generated on `date` EOF rm keywordsunsorted.html keys cat NameIndex.html | sed -e 's/MI.html/index.html/' > Static_NameIndex.html