#!/bin/bash<br>
pbpaste | pbcopy<br>
Save the script as, for example, poortextformat.command (as hinted here), change the permissions with
chmod a+x poortextformat.command
and that's it.
This hint is useful for example in Google Docs, as there is no option to paste plain text.

