aboutsummaryrefslogtreecommitdiff
path: root/cpy.1
blob: 3b23b8b67953725cca3782ffa47dc4c678fd3119 (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 .