The article uses, but does not describe pbcopy and pbpaste on os x.
Feed data to pbcopy, and it goes to the clipboard:<p><pre><code> pwd | pbcopy # Copies the working directory to the clipboard
</code></pre>
pbpaste outputs the clipboard contents:<p><pre><code> cd `pbpaste` # cd to the directory in the clipboard
</code></pre>
(I use this to go to the same dir in a second terminal)
(There's Linux equivalent called, xsel does the same.)