#!/bin/sh
#
# Give the URL of the previous location

if [ -z "$1" -o ! -r "$1" ]; then
    exit 1
fi

head -50 $1 | fgrep '<!ENTITY prevloc' | cut -d\" -f 2
