Pipe to/from the clipboard
Linux
Note that clipboard is provided by X Window System
xclip
Add alias to ~/.bashrc
alias xclip="xclip -selection c"Pipe to the clipboard
cat example.c | xclipWindows
macOS
References
Last updated
Was this helpful?