is there any easy way to implement the copy to clipboard option from the output of a shell script ?
Thanks..but is there any inbuilt command to do so ?
Krishna
2010-10-26 15:53:33
+2
A:
That may depend on the environment you're using. With Gnome at least (I haven't tried the others but it may work), you can pipe your output as follows:
echo 123 | xclip
echo 123 | xclip -sel clip
The first goes to the mouse clipboard, the second to the "normal" clipboard.
paxdiablo
2010-10-26 12:56:45