I need to directly copy the terminal stdout to the clipboard on Mac. How would I do this?
echo sometext | copy_to_clipboard
echo sometext > /private/clipboard.txt
echo foo | pbcopy
Also see man pbcopy for info on it and pbpaste.
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
2 years ago
9 months ago