From owner-freebsd-questions@FreeBSD.ORG Tue Jun 9 03:54:14 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B6B9106566C for ; Tue, 9 Jun 2009 03:54:14 +0000 (UTC) (envelope-from scs@eecs.berkeley.edu) Received: from gateway0.EECS.Berkeley.EDU (gateway0.EECS.Berkeley.EDU [169.229.60.87]) by mx1.freebsd.org (Postfix) with ESMTP id 5355F8FC13 for ; Tue, 9 Jun 2009 03:54:14 +0000 (UTC) (envelope-from scs@eecs.berkeley.edu) Received: from [192.168.1.13] (adsl-75-41-56-181.dsl.pltn13.sbcglobal.net [75.41.56.181]) (authenticated bits=0) by gateway0.EECS.Berkeley.EDU (8.14.3/8.13.5) with ESMTP id n593sCQi008428 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Mon, 8 Jun 2009 20:54:13 -0700 (PDT) Message-Id: <9FACF948-286D-40BC-9471-74CC1D5580E9@eecs.berkeley.edu> From: Steven Schlansker To: Lord Of Hyphens In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Date: Mon, 8 Jun 2009 20:54:07 -0700 References: X-Mailer: Apple Mail (2.935.3) Cc: Daniel Underwood , freebsd-questions@freebsd.org Subject: Re: Reproduce previous stdout output without running previous command X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jun 2009 03:54:14 -0000 On Jun 8, 2009, at 8:48 PM, Lord Of Hyphens wrote: > On Mon, Jun 8, 2009 at 10:44 PM, Daniel Underwood >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. >> > > > 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