#!/bin/sh
#
# ped - scracthpad

file="$(mktemp)"
trap 'rm -f "$file"' EXIT

cat >"${file}"
"${EDITOR:-vi}" "${file}" "$@" </dev/tty >/dev/tty
cat "${file}"
