#!/bin/sh # copies the passed arguments to the clipboard CLIPBOARD_MANAGER="${CLIPBOARD_MANAGER:-xsel -b}" printf '%s ' "$@" | $CLIPBOARD_MANAGER