summaryrefslogtreecommitdiffstats
path: root/clipboard-singlify
blob: 75d09e079c2dc87e2b45365d657da56e68650e9e (plain)
1
2
3
#!/bin/bash

xclip -o | perl -pe 'BEGIN{undef $/;} s#[\t ]*\n[\t ]*# #mg; s#^\s*##; s#\s*$##' | xclip