diff options
author | John Ankarström <john@ankarstrom.se> | 2020-11-24 02:33:30 +0100 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2020-11-24 02:33:30 +0100 |
commit | 09c8e5f72b34b7c13f278acb52f2dd3e530558d3 (patch) | |
tree | 14b8065161759f19e649065e18b48216b2ee6bb3 /cpy.1 | |
download | xutil-09c8e5f72b34b7c13f278acb52f2dd3e530558d3.tar.gz |
Add 'cpy' / 'pst', 'ep' and 'ord' utilities
Diffstat (limited to 'cpy.1')
-rw-r--r-- | cpy.1 | 48 |
1 files changed, 48 insertions, 0 deletions
@@ -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 . |