echo -n "string" | xclip -selection clipboard
I should probably have elaborated a bit. The default for echo is to output the string AND a newline. -n suppreses the latter.
echo -n "string" | xclip -selection clipboard
I should probably have elaborated a bit. The default for echo is to output the string AND a newline. -n suppreses the latter.