added section on xclip

This commit is contained in:
scbj
2025-02-25 12:39:39 +01:00
parent 22db249ef2
commit 1865027156
2 changed files with 22 additions and 3 deletions

View File

@@ -11,3 +11,19 @@ Usage:
```bash
find . -type f | xargs chmod 644
```
### pipe output into clipboard
> requires `xclip`
One can save command output to the clipboard by piping it to `xclip`:
```sh
# usage
command | xclip -selection clipboard
# working example with 'echo'
echo "hello world" | xclip -selection clipboard
```
> NOTE: the argument `-selection clipboard` is required