0

I have a long string of text saved in a file that I want to easily copy to clipboard using Os X 10.11 terminal

1
  • Create an Automator task for a Shell Script that runs pbcopy < name-of-template-file. Then map that to a key. Commented Feb 18, 2016 at 17:34

1 Answer 1

0
pbcopy < myfile.txt 

or

cat myfile.txt | pbcopy 

See man pbcopy and man pbpaste.

(This is specific to Mac OS X; for Linux there are other similar commands.)

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.