Sometimes we need to copy and paste some text from internet to text file.

do this...

1# open terminal

2# copy text

3# type this CMD: pbpaste > file.txt