I'm coping file to xclip
cat file.txt | xclip
I'm pasting without problem with
xclip -o
When I want to paste it to Firefox with Ctrl+V it pastes old text (that shouldn't already be in the clipboard).
When I go back to terminal and run xclip -o it pastes the correct text.
Why is there a problem with pasting to Firefox?
cat. You can also doxclip file.txtaccording to its man page, and in general you can also redirect input using<, e.g.$some_command < file.txt. – janmoesen Oct 13 '11 at 18:33