Quickly paste clipboard to file

Combine cat and a clipboard pasting utility of your choice (e.g. pbpaste) to quickly dump your clipboard to a file:

$ pbpaste | cat > out.txt
View on Github