I tried the following code unsuccessfully
cat pbcopy >> newFile
How can you save your clipboard to the file newFile without opening a text-editor?
Try: pbpaste >newFile
pbpaste >newFile