#!/bin/sh

# ep -- edit pipe

tmp=`mktemp /tmp/ep.XXXXXX`
cat > $tmp
${EDITOR:-vi} $tmp < /dev/tty > /dev/tty
cat $tmp
rm $tmp