#!/bin/sh # this version intentionally breaks hard links for i do rm -f $i.bak mv $i $i.bak cp $i.bak $i done exec /usr/bin/nvi $@