Skip to content

p

Usage
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 stdout
Examples
p | grep foo
p > file.txt