#!/bin/bash tmpfile=$(mktemp /tmp/vipe.XXXXX) trap '{ rm -rf "${tmpfile}"; }' EXIT cat >"${tmpfile}" ${EDITOR} "${tmpfile}" /dev/tty cat "${tmpfile}"