In case you want to copy the entire content of a file to clipboard, here is what you can do conveniently.
$ cat some_file.txt | pbcopy
This command will copy the standard output to the clipboard. Since the cat command pipes the file's text to standard output, pbcopy will copy it into clipboard.
That's it!
No comments:
Post a Comment