title: Easiest way to strip newline character from input string in pasteboard
body: <p>Hopefully fairly straightforward, to explain the use case when I run the following command (OS X 10.6):</p>
  
  <pre><code>$ pwd | pbcopy
  </code></pre>
  
  <p>the pasteboard contains a newline character at the end. I'd like to get rid of it.</p>