1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-04 22:55:44 +02:00

xclip: fix example description and replace 1 example (#4985)

This commit is contained in:
Roshak Zarhoun 2020-11-27 20:10:03 +01:00 committed by GitHub
parent 0f4e7576ab
commit d23dc34a25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,7 @@
`echo 123 | xclip -selection {{primary|secondary|clipboard}}`
- Copy the contents of a file to the system clipboard, using short notation:
- Copy the output from a command to the system clipboard, using short notation:
`echo 123 | xclip -sel clip`
@ -23,6 +23,10 @@
`xclip -sel clip -t image/png {{input_file.png}}`
- Copy the user input in the console into the system clipboard:
`xclip -i`
- Paste the contents of the X11 primary selection area to the console:
`xclip -o`
@ -30,7 +34,3 @@
- Paste the contents of the system clipboard to the console:
`xclip -o -sel clip`
- Paste the contents of the system clipboard into a file:
`xclip -o -sel clip > {{output_file.txt}}`