Reproduce previous stdout output without running previous command

Steven Schlansker scs at eecs.berkeley.edu
Tue Jun 9 03:54:14 UTC 2009


On Jun 8, 2009, at 8:48 PM, Lord Of Hyphens wrote:

> On Mon, Jun 8, 2009 at 10:44 PM, Daniel Underwood <djuatdelta at gmail.com 
> >wrote:
>>
>> $ fdupes -r ~/directorywithlotsoflargefiles
>>
>> (.....lots of output, woops, should have sent to a text file!....)
>>
>> $ output[1] >> ~/textfile.txt
>>
>> Hopefully this has made (some) sense.
>> <freebsd-questions at freebsd.org>
>
>
> Check the manpage for tee. That should give you a solution you're  
> looking
> for.

I think the intention of the original question was for the case where  
you have
forgotten to set up a pipe/redirection properly before starting the  
long-
running command.  Tee would work fine if you have the foresight to use  
it...

Steven


More information about the freebsd-questions mailing list