is there a way to copy a string to clipboard from command line?
To be more specific, I want to make a script which copies my email address to clipboard, so that when I n
echo 'your-email@example.com' | pbcopy (as @Jonathan Leffler stated above)
echo 'your-email@example.com' | pbcopy
Or see the answer for the related question on piping to clipboard on different operating systems: Pipe to/from the clipboard in Bash script