Copy a string to clipboard from Mac OS command line : <p>is there a way to copy a string to clipboard from command line?</p>

<p>To be more specific, I want to make a script which copies my email address to clipboard, so that when I need to insert it several times for logging in / register, I just run the script once and then CMD+V it whenever I need.</p>

<p>I heard of <code>pbcopy</code>, but I think this is not my case. Any suggestion?
Many thanks!</p>
