Saturday 29 September 2018

linux - How to pipe text from command line to the clipboard


I'd like to do something like


dir *.* > clipboard

ie. get to get the standard output of a command line program copied to the clipboard. Can this be done on a standard XP machine without additional programs?



Answer



I don't believe so - Vista (or NT4) introduced the clip tool, which would do your command as dir | clip - but there's nothing on XP. If you're willing to use 3rd party applications, though, there's this, which works as above, except is called cb, not clip.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...