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

$D name index

EOF for i in *.[Jj][Pp][Gg] do j=`echo $i | sed -e 's/\.[Jj][Pp][Gg]//' ` rdjpgcom $i | grep -iv catholic | grep -iv columbarium | grep -iv cemetery | grep -iv anglican | grep -iv uniting | sed -e 's/ /\n/g' | tr a-z A-Z | grep -o "[A-Z][A-Z'][A-Z-]*[A-Z]" | sort -u > keys text="`rdjpgcom $i | grep -v '^$' | tr '\n\r' '~~'`" for k in `cat keys` do if grep -i $k ../templates/exclusions > /dev/null then true else echo "" #echo "" fi done done >> keywordsunsorted.html sort -u < keywordsunsorted.html | tr '~' '\n' >> NameIndex.html cat << EOF >> NameIndex.html
$k$j
$text
$k$j$text


All the photos
Names in no particular order
All the family EOF rm keywordsunsorted.html keys