Copy contents of a file - CLI Mac OSX
This Mac OSX CLI command will copy the contents of a file and automatically copy it to your clipboard so that it is available to you without opening the file which can be cumbersome.
cat ~/.ssh/id_rsa.pub | pbcopy