aboutsummaryrefslogtreecommitdiff
path: root/bin/copy
diff options
context:
space:
mode:
Diffstat (limited to 'bin/copy')
-rwxr-xr-xbin/copy14
1 files changed, 11 insertions, 3 deletions
diff --git a/bin/copy b/bin/copy
index 64e1e32..d7ffd61 100755
--- a/bin/copy
+++ b/bin/copy
@@ -4,7 +4,7 @@ set -eu
usage() {
cat <<-'EOF'
Usage:
- copy [-n] < STDIN
+ copy [-n]
copy -h
EOF
}
@@ -12,17 +12,25 @@ usage() {
help() {
cat <<-'EOF'
+
Options:
-n remove newlines
-h, --help show this message
+
+ Copy data from STDIN to the X11 clipboard.
+
+
Examples:
Copy numbers to clipboard:
- seq 10 | copy
+
+ $ seq 10 | copy
+
Copy string without newline:
- echo 'with automatic newline' | copy -n
+
+ $ echo 'with automatic newline' | copy -n
EOF
}