Answers for "bash redirect to clipboard"

1

xclip stdin

$ echo "Some Text" | xclip -selection clipboard
Posted by: Guest on August-06-2020
0

bash copy contents of file to clipboard

# Basic syntax using pbcopy:
pbcopy < /path/to/file

# Paste with:
pbpaste > /path/to/output_file

# Note, you can filter what you paste with grep, e.g.:
pbpaste | grep 'useful text' > /path/to/output_file
Posted by: Guest on October-04-2020

Browse Popular Code Answers by Language