From d23dc34a258f40b24ec5e1e993fb0364a2e32aa8 Mon Sep 17 00:00:00 2001 From: Roshak Zarhoun Date: Fri, 27 Nov 2020 20:10:03 +0100 Subject: [PATCH] xclip: fix example description and replace 1 example (#4985) --- pages/linux/xclip.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/linux/xclip.md b/pages/linux/xclip.md index 96203c5161..4dd5fb42cb 100644 --- a/pages/linux/xclip.md +++ b/pages/linux/xclip.md @@ -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}}`