A fast way to convert to plain text on Mac OS X

Copy your text and run this code in the terminal.

What is it doing? This command pastes your text from the “pasteboard” (hence the pb in pbpaste and pbcopy) and pipes (|) it back to the pasteboard. Since these commands don’t support richtext by default it gets stripped.

I use this sometimes when I have a lot of little pieces to cut and paste. It’s easy to command-tab to the terminal. Press up to run the previous command and press enter. Some applications have a special shortcut command (Ctrl-Shift-V) to do this but many don’t.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s