From 7ead7728a69b3252ede19a00e958f6a2b38845b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 24 Nov 2020 02:50:49 +0100 Subject: ep: Add manual --- ep.1 | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 ep.1 diff --git a/ep.1 b/ep.1 new file mode 100644 index 0000000..897a064 --- /dev/null +++ b/ep.1 @@ -0,0 +1,29 @@ +.Dd $Mdocdate$ +.Dt ep 1 +.Os +. +.Sh NAME +.Nm ep +.Nd edit pipe +. +.Sh SYNOPSIS +.Nm +. +.Sh DESCIPTION +.Pp +.Nm +redirects standard input to a temporary file, +opens it in +.Ev EDITOR +(or vi, if none is set) and prints the contents of the (edited) file on standard output. +.Pp +.Nm +can be used as a versatile option selector. +The following sequence is a quick way to delete all lines but the current in vi: +.Dl :.w! +. +.Sh AUTHORS +.Pp +.Nm +is written by John Ankarström +.Aq Mt john (at) ankarstrom.se . -- cgit v1.2.3