Remove formatting from copy/paste buffer This should do it: xclip -selection c -o | xclip -selection c