TIL: Discovered a super game changing technique. From command line, you can copy contents of any file to Mac OS clipboard by running this command:
cat yourfilename.txt | pbcopy
- Open your other application, press
Command+V
to paste as normal - Profit. Immensely.