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: http://lists.schmorp.de/pipermail/rxvt-unicode/2011q4/001494.html > 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] regards