Date: Mon, 8 Jun 2009 23:13:00 -0700 From: Norbert Papke <npapke@acm.org> To: freebsd-questions@freebsd.org Cc: Daniel Underwood <djuatdelta@gmail.com> Subject: Re: Reproduce previous stdout output without running previous command Message-ID: <200906082313.01084.npapke@acm.org> In-Reply-To: <b6c05a470906082044l69616b2h531adaa1fdf9f0e@mail.gmail.com> References: <b6c05a470906082044l69616b2h531adaa1fdf9f0e@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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. -- Norbert Papke. npapke@acm.org http://saveournet.ca Protecting your Internet's level playing field
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906082313.01084.npapke>