aboutsummaryrefslogtreecommitdiff
path: root/cpy.1
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2020-11-24 02:33:30 +0100
committerJohn Ankarström <john@ankarstrom.se>2020-11-24 02:33:30 +0100
commit09c8e5f72b34b7c13f278acb52f2dd3e530558d3 (patch)
tree14b8065161759f19e649065e18b48216b2ee6bb3 /cpy.1
downloadxutil-09c8e5f72b34b7c13f278acb52f2dd3e530558d3.tar.gz
Add 'cpy' / 'pst', 'ep' and 'ord' utilities
Diffstat (limited to 'cpy.1')
-rw-r--r--cpy.148
1 files changed, 48 insertions, 0 deletions
diff --git a/cpy.1 b/cpy.1
new file mode 100644
index 0000000..3b23b8b
--- /dev/null
+++ b/cpy.1
@@ -0,0 +1,48 @@
+.Dd $Mdocdate$
+.Dt cpy 1
+.Os
+.
+.Sh NAME
+.Nm cpy
+.Nd copy text
+.
+.Sh SYNOPSIS
+.Nm cpy
+.Op Ar suffix
+.Nm pst
+.Op Fl d
+.Op Ar suffix
+.
+.Sh DESCIPTION
+.Pp
+.Nm cpy
+copies text on standard input to /tmp/cpy using
+.Nm tee .
+.Nm pst
+writes the contents of /tmp/cpy on standard output.
+If
+.Fl d
+is present,
+.Nm pst
+deletes /tmp/cpy after reading it.
+.Pp
+If
+.Ar suffix
+is present,
+.Nm cpy
+and
+.Nm pst
+append that suffix to the file name.
+For example, setting
+.Ar suffix
+to
+.Ql 1
+will copy to and paste from the file /tmp/cpy1.
+.
+.Sh AUTHORS
+.Pp
+.Nm cpy
+and
+.Nm pst
+are written by John Ankarström
+.Aq Mt john (at) ankarstrom.se .