[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: feature request: capture output of last command and make it availabl
Re: feature request: capture output of last command and make it available on some hotkey
Wed, 14 Aug 2013 08:28:13 +0200
On Wed, Jul 31, 2013 at 11:45:37AM -0400, Greg Wooledge wrote:
> On Wed, Jul 31, 2013 at 02:09:23AM +0200, Jörn Hees wrote:
> > i think this would be a very useful feature and i don't seem to be alone:
> > http://stackoverflow.com/questions/5955577/bash-automatically-capture-output-of-last-executed-command-into-a-variable
> Bash has no knowledge of, and no way to interact with, commands that
> it spawns.
> Bash can't "capture" this in a variable. Your TERMINAL might be able to
> cough up output on demand, but bash is completely unaware of the output.
Q&D extension for urxvt:
> pastes the last line up to the first occurence of ':'
It's a must-have for me as it permits to grab the last matching file
after a `grep`:
$ grep misc *
$ less [press M-V]
|[Prev in Thread]
||[Next in Thread]|
- Re: feature request: capture output of last command and make it available on some hotkey,