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

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

 



On Friday 23 Jan 2004 10:02 am, c q wrote:
> On Thu, 22 Jan 2004 22:32:12 -0800, Prasanth Kumar wrote:
> > 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
>
> locate file > t.txt  //creates a new file or overwrites file with new data
> locate file >> t.txt //appends more data to the end of t.txt

I missed the start of this thread, but have you looked at the "script" command 
as it can log all terminal transactions to a file?  Sorry if this is no help.
-- 
Alan  D




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

  Powered by Linux