1 .TH wcopy,wpaste 1 04/09/01
4 wcopy \- copy stdin to an X11 cut buffer
5 wpaste \- paste X11 cut buffer to stdout
7 .B wcopy [ [0-9]... ] [wxcopy's normal args]
9 \fBwcopy\fP reads from standard input and copies it to the nominated
11 The default is the first cut buffer.
13 \fBwpaste\fP pastes the nominated X11 cut buffers(s)
15 The default is the first cut buffer.
17 Note that the cut buffers are numbered starting from 0.
19 Simple integer arguments pick a cut-buffer.
22 the argument number picks a cut-buffer to copy the standard input to.
23 (Subsequent copies are taken from the first nominated buffer \-
24 it does not try to re-read the input!))
27 .B echo fred | wcopy 1 2
28 This puts the word "fred" into the 2nd and 3rd cut-buffers.
30 .B wpaste | tr "A-Z" "a-z" | wcopy 1
31 This copies the clipboard then translates all upper case letters to lower in
33 cut buffer and copies the result into the 2nd.
35 .B wpaste 0 | fmt -w 66 | sed 's/^/> /' | wcopy 1
36 This reformats the clipboard to paragraphs with lines no longer than 66
37 characters, inserts typical email quoting characters, and copies the
38 output to the 2nd cut-buffer.
40 .B wpaste | sed 's/^> *//' | wcopy
41 This removes email quotes from the start of lines in the clipboard
42 and replaces the clipboard with the un-quoted material.
44 .B wpaste > ~/.myclipboard
45 Copies the clipboard into a location where it can be pixked up from other
46 computers (e.g. even from a Windows machine) \- as per the file permissions
47 you choose for the ".myclipboard" file.
49 If WXCOPY_DEFS or WXPASTE_DEFS are defined in your environment,
50 they will always be provided as the first argument(s) to the
51 respective underlying command.
53 Don't use "-cutbuffer N" notation as per wxcopy/wxpaste:
54 stick to just using the plain unadorned number(s) that wcopy/wpaste expect.
56 wxcopy(1), wxpaste(1), xcb(1)