#!/bin/sh if [ ! -f $1 ]; then echo "No such file $1" exit else ed $1 << EOF 1,\$s,file:/u2/dragon/Graphics/nmt/ftp.nmt.edu/graphics,ftp://ftp.nmt.edu/pub/graphics,g w q EOF fi