#!/bin/sh # restore -- restore backups to current version # # Usage: # reset # # where if [ $# = -h ]; then exec /home/morell/bin/printdirections $0 fi FileName="$*" for f in $FileName do echo -n "Restore $f (n/y)?" read Answer if [ "$Answer" = y ]; then cp $f.old $f fi done