#!/bin/ksh if [[ $(echo $REMOTE_HOST | grep -c '\.jp$') != 0 ]] ; then echo "Location: indexj.shtml\n\n" else echo "Location: index.shtml\n\n" fi