aboutsummaryrefslogtreecommitdiff
path: root/doc/cpy.1
blob: 9c92c3cf407aa208921ca2c715fb36db20fbab7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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 .