If you use an editor which does not have a "Paste and Match style" option, and you want to copy/paste a fragment of web page or other rich text without all the formatting, use the following script:
Save the script as, for example,
#!/bin/bash<br> pbpaste | pbcopy<br>
(as hinted here), change the permissions with
and that's it. This hint is useful for example in Google Docs, as there is no option to paste plain text.
chmod a+x poortextformat.command