Skip to content

Instantly share code, notes, and snippets.

@rkfg
Created October 17, 2015 13:58
Show Gist options
  • Save rkfg/f0aa868fe0db5392b39a to your computer and use it in GitHub Desktop.
Save rkfg/f0aa868fe0db5392b39a to your computer and use it in GitHub Desktop.
Shitpost
#!/bin/sh
TEXT=$(xsel | awk '{print toupper($0)}')
(echo
echo $TEXT | sed 's#\(.\)#\1 #g'
echo $TEXT | sed 's#.\(.*\)#\1#' | sed 's#\(.\)#\1\n#g') | xsel -ib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment