3 ms·
I like `xsel --clipboard` which Does The Right Thing by automatically deciding if it should copy or paste. # Paste clipboard into command. xsel --clipb
by kevincox 6y ago
I like `xsel --clipboard` which Does The Right Thing by automatically deciding if it should copy or paste.
# Paste clipboard into command.
xsel --clipboard | grep foobar
# Copy into clipboard
grep foobar somefile.txt | xsel --clipboard
# Transform clipboard.
xsel --clipboard | tr A-Z a-z | xsel --clipboard
I find this so useful that I have it aliased to `c`.