#/!bin/sh # Open stdin in a text editor and sends modified selection to stdout # Requires: xeditor f=$(mktemp) cat > "$f" xeditor "$f" && cat "$f"