commands.sh

pbcopy

macos

Copy data from `stdin` to the clipboard. Comparable to pressing `<Cmd c>` on the keyboard.

More info →

Examples (2)

Place the contents of a specific file in the clipboard

pbcopy < path/to/file

Place the results of a specific command in the clipboard

find . -type t -name "*.png" | pbcopy
made by @shridhargupta | data from tldr-pages