I'd like to cat file.txt
and put the output into the clipboard (to use it later). How can I do it, preferably by a command in bash
?
Update: I don't want to copy content of file.txt to another file. I just want to put it content into clipboard (something like Ctrl+C would do in a GUI application) to be able to past it in somewhere later.