summaryrefslogtreecommitdiffstats
path: root/clipboard-singlify
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-10-26 17:11:38 +0100
committerFlorian Pritz <bluewind@xinu.at>2015-10-26 17:11:38 +0100
commitec54b9528b2eb32d5775bc1ff3566f1e2e2db955 (patch)
treefaafce0250705f97785b0bf30b092f9e27362fe3 /clipboard-singlify
parent1c304f96c427d3538934fffa075ab50d7ab7d64a (diff)
downloadbin-ec54b9528b2eb32d5775bc1ff3566f1e2e2db955.tar.gz
bin-ec54b9528b2eb32d5775bc1ff3566f1e2e2db955.tar.xz
Add new scripts
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'clipboard-singlify')
-rwxr-xr-xclipboard-singlify3
1 files changed, 3 insertions, 0 deletions
diff --git a/clipboard-singlify b/clipboard-singlify
new file mode 100755
index 0000000..75d09e0
--- /dev/null
+++ b/clipboard-singlify
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+xclip -o | perl -pe 'BEGIN{undef $/;} s#[\t ]*\n[\t ]*# #mg; s#^\s*##; s#\s*$##' | xclip