From 265d393772f892ce46e404c6ad04c715a4a7a2d1 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Sat, 10 Jun 2017 20:23:09 +0000 Subject: [PATCH] xsel --- see_also/pbcopy | 1 + see_also/pbpaste | 1 + see_also/xclip | 1 + sheets/xsel | 21 +++++++++++++++++++++ 4 files changed, 24 insertions(+) create mode 100644 sheets/xsel diff --git a/see_also/pbcopy b/see_also/pbcopy index efda2ba..e874c0e 100644 --- a/see_also/pbcopy +++ b/see_also/pbcopy @@ -1,3 +1,4 @@ pbcopy pbpaste xclip +xsel diff --git a/see_also/pbpaste b/see_also/pbpaste index efda2ba..e874c0e 100644 --- a/see_also/pbpaste +++ b/see_also/pbpaste @@ -1,3 +1,4 @@ pbcopy pbpaste xclip +xsel diff --git a/see_also/xclip b/see_also/xclip index efda2ba..e874c0e 100644 --- a/see_also/xclip +++ b/see_also/xclip @@ -1,3 +1,4 @@ pbcopy pbpaste xclip +xsel diff --git a/sheets/xsel b/sheets/xsel new file mode 100644 index 0000000..9c7e017 --- /dev/null +++ b/sheets/xsel @@ -0,0 +1,21 @@ +# xsel +# +# X11 selection and clipboard manipulation tool. + +# Use a command's output as input of the clip[b]oard (equivalent to Ctrl + C): +echo 123 | xsel -ib + +# Use the contents of a file as input of the clipboard: +cat file | xsel -ib + +# Output the clipboard's contents into the terminal (equivalent to Ctrl + V): +xsel -ob + +# Output the clipboard's contents into a file: +xsel -ob > file + +# Clear the clipboard: +xsel -cb + +# Output the X11 primary selection's contents into the terminal (equivalent to a mouse middle-click): +xsel -op