pbcopy

Unable to save pbcopy to a new file without opening a text-editor


I tried the following code unsuccessfully

cat pbcopy >> newFile

How can you save your clipboard to the file newFile without opening a text-editor?


Solution

  • Try: pbpaste >newFile