Copying Remote Command Output to Your macOS Clipboard (opens in new tab)
I use Apple devices very often. Overall, I like macOS. Certainly more than Windows. One of the things I find extremely useful is a command I discovered not too long ago: pbcopy. pbcopy can be used to copy to the clipboard whatever it receives from standard input. For example, when I am in a shell, I often use a command like this: cat filename.md | pbcopy At that point I know that the content of the file is in the clipboard, and I can paste it wherever I need, calmly and without any additional...
Read the original article