Published: 2018-10-12 • Last updated: 2019-09-12
In each example below, the contents of a file are copied to the clipboard.
cat <file> | pbcopy
type <file> | clip