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 |
Returns:
0 |
Clipboard contents printed successfully |
1 |
No supported clipboard tool found |
p | grep foop > file.txt