bash: any way to reuse the last output?

Jason Dixon jason at dixongroup.net
Fri Jan 23 14:19:16 UTC 2004


On Fri, 2004-01-23 at 08:54, Leonid Mamtchenkov wrote:
> * Jason Dixon <jason at dixongroup.net> [23-Jan-2004 08:39]:
> > > > grep whatever $__
> > > > 
> > > > There.. wouldn't it be nice? :)
> > > 
> > > grep whatever `!!`
> > 
> > I'm afraid I fail to see how any of this is easier than scrolling up
> > once in the buffer, and adding a "| grep whatever".
> 
> !! is scriptable, while scrolling up is not (or not that easy it is). :)

Of course, but that wasn't a requirement of the OP.  He wanted to find a
way to avoid *typing* the command over again.

-- 
Jason Dixon, RHCE
DixonGroup Consulting
http://www.dixongroup.net





More information about the fedora-list mailing list