The Mac OS X pbpaste command - access clipboard contents (for shell scripts)

I’ve never had the need for this, but I just saw that Mac OS X has a pbpaste command that you can use at the command line to access the contents of the clipboard. You can always paste stuff at the command line using Cmd-V, so I assume that this is more useful for shell scripts.