guides, scripts, small programs, etc.
$ cat /usr/local/bin/c
#!/bin/sh if test -n "$1"; then STDIN="${1}" elif test ! -t 0; then STDIN=$(cat) else echo 'Usage:' echo ' c < /path/to/file' echo ' c text-to-be-copied' echo ' command | c' exit 1 fi qdbus org.kde.klipper /klipper setClipboardContents "$STDIN"
$ cat /usr/local/bin/v
#!/bin/sh qdbus org.kde.klipper /klipper getClipboardContents
This is what I like to use :)