summaryrefslogtreecommitdiffstats
path: root/clipboard-singlify
diff options
context:
space:
mode:
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