Date: Mon, 8 Jun 2009 23:44:34 -0400 From: Daniel Underwood <djuatdelta@gmail.com> To: freebsd-questions@freebsd.org Subject: Reproduce previous stdout output without running previous command Message-ID: <b6c05a470906082044l69616b2h531adaa1fdf9f0e@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
OK, this is perhaps a weird question, capable of being very confusing. So let's take a "for instance". Suppose I run something like the Linux command "fdupes" on a directory with many large files. This operation will take considerable time to complete. When it completes, a lot of output is send to stdout (displayed on the terminal). 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: $ fdupes -r ~/directorywithlotsoflargefiles (.....lots of output, woops, should have sent to a text file!....) $ output[1] >> ~/textfile.txt Hopefully this has made (some) sense.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b6c05a470906082044l69616b2h531adaa1fdf9f0e>