Re: bash: any way to reuse the last output?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2004-01-22 at 22:10, Herculano de Lima Einloft Neto wrote:
> Mike Klinke wrote:
> > Perhaps you could create a perl, tcl, or bash script as a front end 
> > which you can "alias" to find which will store the stdout in a file 
> > for you.
> 
> No go.. that would only work for find, and not the hundreds of
> other commands..
> 
> c q wrote:
> > You could always save the output to a file and then use cat
> > e.g. locate so > t.txt
> > cat t.txt | grep whatever
> 
> That doesn't do me much good, since the tee would be much better.. but
> the main question now is: how to append it without having to type it
> every time? It's supposed to be for every command executed, since the
> will to manipulate only sparks afterwards.
> 
> Thanks all,
> --
> Herculano de Lima Einloft Neto
> 

This will not answer your question as you still need to rerun the
commands but the typing is pretty short:

locate so
!! | grep whatever

-- 
Regards,
Prasanth





[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux