Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jun 2009 12:34:28 +0100
From:      Frank Shute <frank@shute.org.uk>
To:        Norbert Papke <npapke@acm.org>
Cc:        freebsd-questions@freebsd.org, Daniel Underwood <djuatdelta@gmail.com>
Subject:   Re: Reproduce previous stdout output without running previous command
Message-ID:  <20090610113428.GA17212@melon.esperance-linux.co.uk>
In-Reply-To: <200906082313.01084.npapke@acm.org>
References:  <b6c05a470906082044l69616b2h531adaa1fdf9f0e@mail.gmail.com> <200906082313.01084.npapke@acm.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 08, 2009 at 11:13:00PM -0700, Norbert Papke wrote:
>
> On June 8, 2009, Daniel Underwood wrote:
> > Further suppose that after running the command, I decide I want to
> > save the output to a text file, so I can analyze the results outside
> > of the terminal.  What can I do? Well, I can do a traditional
> > "copy-and-paste", or I could re-enter the previous command and send it
> > to a text file (which I ought to have done in the first place).
> >
> > But is there another option?  Is there some variable (such as,
> > hypothetically, $output[n], where n=some integer index) that I could
> > use to store the results in a text file?  Such an option might look
> > like the following:
> 
> You could use sysutils/screen from ports.  Screen lets you capture your 
> session in a log file.  If you decide you need the output from a previous 
> command, it would be trivial to extract from the log.
> 

Nobody's mentioned script(1).


Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090610113428.GA17212>