#!/bin/sh if [ $# -eq 0 ]; then echo "usage: etk filename" >&2 exit 1 fi echo '#!/bin/sh' >$1 echo '# the next line restarts using wish \' >>$1 echo 'exec wish "$0" "$@"' >>$1 echo >>$1 echo >>$1 chmod 755 $1 exec vi -c '4+' $1 .