Blob
1 # clip3 clip is a small utility to manage the X clipboard sensibly. It's4 meant to be used interactively, not in scripts.6 if the standard input is not a tty, slurp everything (except the last7 newline!) to the clipboard9 if [ ! -t 0 ]; then10 exec xclip -r -selection clipboard >/dev/null11 fi13 otherwise output its contents15 exec xclip -o -selection clipboard