Monday 18 June 2012

Cygwin: Output text content to the clipboard

Sometimes it's useful to redirect the output directly to the windows clipboard so you can use the content elsewhere later (a text editor, for example):
bash-4.1$ grep "Starting MarkLogic" ErrorLog_2.txt -A50 -B260 > /dev/clipboard

No comments: