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 Email and Password
4 years ago
2 years ago