#! /bin/bash # Last edited on 2008-02-04 20:32:08 by stolfi usage="${0##*/}" # Displays all ".jpg" images under the current directory if [ $# -ne 0 ]; then echo "usage: ${usage}"; exit 1; fi tools="${STOLFIHOME}/projects/fragments/tools" ( cd ${tools}/. ) tmp="/tmp/$$.shows" find ./ -name '*.jpg' -print \ | egrep '[-][s][.]jpg' \ > ${tmp} find ./ \( -name '*.jpg' -o -name '*.tif' \) -print \ | egrep -v '[-][a-wyz][.]' \ | sed -e 's:[.]jpg:-s.jpg:' -e 's:[.]tif:-s.jpg:' \ >> ${tmp} find ./ -name '*.jpg' -print \ | egrep '[-][a-rt-wyz][.]' \ | sed -e 's:[-][a-rt-wyz][.]jpg:-s.jpg:' \ >> ${tmp} display -title '%d/%f' `cat ${tmp} | sort | uniq` rm ${tmp}