Created
April 8, 2021 17:56
-
-
Save piotr-zuralski/5c160b822f653e353c1552940ac254e9 to your computer and use it in GitHub Desktop.
cli operations on clipboard (copy, paste)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# brew install pbcopy pbpaste | |
# OR | |
# sudo apt install xclip xsel | |
# alias pbcopy='xsel --clipboard --input' | |
# alias pbpaste='xsel --clipboard --output' | |
# copy content of file to clipboard | |
pbcopy < file.txt | |
# paste content from clipboard command: | |
pbpaste |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment