Basic Use
XClip is intended for linux, for Mac use PBCopy
Copy text to clipboard
cat sometextfile.txt | xclip -selection c
Paste text from clipboard
xclip -o > helloworld.txt
Misc
Add the following to alias to default xclip to normal clipboard
alias xclip='xclip -selection c'