Crossplatfrom xclip script (with caveat)
// copy data from stdin to clipboard
echo "hello world" | gclip
// copy data from file to clipboard
gclip file
gclip will spawn a gtk Label saying Copied! that you have to dismess (ctrlc, or x button)
It works on wayland