With the help of xclip
, one can copy the whole text file to the system clipboard
$ sudo apt-get install xclip
The following copys the content of foo
file to clipboard (X selection)
$ cat foo | xclip -selection c
Once copied, put it into a file
xclip -o > foo
No comments:
Post a Comment