I am looking to copy txt file content to clipboard so that I will be able to paste it somewhere else (using MAC terminal). Normally, I am supposed to select the text content and make a copy. That is not convenient in my case since the content is too large too scrolled all the way down. Is there a Linux shortcut that I can use to copy the content within a single command? I have heard about cat, yet that did not work in my case.
Use pbcopy:
cat myfile.txt | pbcopy
More examples.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With