Copy output to clipboard (macOS)

Terminal
<command> | pbcopy
macOS