terminal copy file to clipboard code example
Example 1: copy from terminal to clipboard
$ pbcopy < ~/.ssh/id_ed25519.pub
# Copies the contents of the id_ed25519.pub file to your clipboard
Example 2: mac copy file to clipboard terminal
$ pbcopy < file.txt