I want to search and cut text from command output in a terminal so I can use it in subsequent command line invocations or just in an editor session.
Is there any way to easily run a regular expression against the output of a terminal and cutting results without touching the mouse?
My requirements are:
- it should work while working with remote machines through ssh. In those machines I can not install extra software there so the solution must be local.
- if possible, it must be "always present". For instance, if I'm running a long process and suddenly it fails I'd like to be able to grep through the output without having to start the process again with a prepared environment.