DEV Community

moogoo
moogoo

Posted on

pbcopy and pbpaste: Mac command-line copy and paste tools

phcopy and pbpaste are super useful command-line tools for Copy and Paste (ctrl+c / ctrl+v).

# copy content from a text file
$ cat my-file.txt | pbcopy
# paste (output) from clipboard
$ pbpaste
Enter fullscreen mode Exit fullscreen mode

Top comments (0)