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

Returns:

0 Clipboard contents printed successfully
1 No supported clipboard tool found
Examples
p | grep foo
p > file.txt