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 Answer 1
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.)
answered Feb 18, 2016 at 17:32
Wildcard
37.5k3030 gold badges149149 silver badges284284 bronze badges
- The Overflow Blog
-
-
- Featured on Meta
-
-
Related
Hot Network Questions
- In Isaiah 42:19, is the “servant” described as spiritually blind referring to Jesus, or to Israel? How should Christians understand this passage?
- What expansion card do I need on Dell PowerEdge R7525?
- A tiny Java framework for gathering running time statistics - Take III
- When was the last time U.S. Congress overrode a president's veto?
- Why does the Bond girl Rublevitch have a seemingly male name?
- Is possible to discover an ip used by interface, if ip range is not know, maybe using arp?
- Trivialising homogeneous vector bundles over a homogeneous space
- Reference request for a proof of Cayley's tree counting formula via the representation theory of the symmetric group
- What is the correct definition of a limit point in real analysis?
- Source for the GR"A holding that a Mil is 22.5 minutes long?
- Does the passport one use to enter and leave a country sometimes determine which passport one must use when entering the next country?
- Why did West Berlin police sometimes thwart escape attempts from East Berlin?
- Create Frame Widget with Pygame
- Nonseparable Hoffmann-Jørgensen metric space
- Hyundai Sonata 2007 replacing low beam bulb parts stuck in connector - help appreciated
- Prevent unregistered users from accessing the system using JWT?
- How to Make TikZ Overlay Arrows Smoother and Better Arranged in Table?
- Why does the p-value increase when I add more observations to my t-test?
- Think inside the box
- Why are novel, easier music notation systems not widely accepted?
- How does Rocky know what Astrophage is?
- Why is the capacitor charging slowly but discharging fast in clamper circuit?
- Why does the final -ts in 'les États-Unis' produce a /z/ liaison sound rather than /t/ or /s/?
- What form factor did the first-gen "compact Mac" HDDs use?
pbcopy < name-of-template-file. Then map that to a key.