#!/bin/bash if [ $# -eq 0 ] then cat - | xclip -i -sel clip else echo $@ | xclip -i -sel clip fi