p
p [args...]Outputs clipboard contents to stdout. Uses wl-paste on Wayland, falls back to xclip on X11. Supports -h/–help for usage info.
Arguments:
-h, --help |
Show usage help |
args... |
Arguments forwarded to the clipboard tool |
Exit Status:
0 |
Clipboard contents read successfully |
1 |
No supported clipboard tool found |
Returns: The clipboard contents, printed to stdoutp | grep foop > file.txt