#!/bin/sh
# run file by extension
case `echo $1 | tr '[A-Z]' '[a-z]'` in
*.pdf)	evince "$1" &;;
*.htm*)	firefox "$1" &;;
*.txt)  more "$1" ;;
*.gif | *.jpg | *.jpeg | *.png) eog "$1" & ;;
"") for f in [Rr][Ee][Aa][Dd][Mm][Ee]* ; do
	more $f
    done;;
*)	echo "don't know what to do with $1"
esac
