Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Execute small bits from the clipboard in Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Execute small bits from the clipboard in Terminal
Authored by: asmeurer on Mar 25, '10 07:20:35PM

I think one way that this could be useful is if you copied something that you want to include as part of a larger command, but you think there may be a newline at the end of the clipboard text. If you try pasting it in to the Terminal, it will execute the command prematurely because of the newline.

It also might be useful if your readline support isn't that great and pasting multiple commands separated by newlines at once doesn't work out so well. `pbpaste` should do the trick much better.

[ Reply to This | # ]