From owner-freebsd-questions Fri Oct 18 13:11:57 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF36337B494 for ; Fri, 18 Oct 2002 13:11:56 -0700 (PDT) Received: from c014.snv.cp.net (h003.c014.snv.cp.net [209.228.35.77]) by mx1.FreeBSD.org (Postfix) with SMTP id 9121243E9E for ; Fri, 18 Oct 2002 13:11:53 -0700 (PDT) (envelope-from klimenta@futurebit.com) Received: (cpmta 11427 invoked from network); 18 Oct 2002 12:44:29 -0700 Received: from 12.33.76.83 (HELO bigbeat) by smtp.cswebmail.com (209.228.35.77) with SMTP; 18 Oct 2002 12:44:29 -0700 X-Sent: 18 Oct 2002 19:44:29 GMT Message-ID: <000601c276de$ca641890$ca0110ac@vinyl.tkvbp.com> From: "Kliment Andreev" To: References: Subject: Re: question: sending to stdout AND file Date: Fri, 18 Oct 2002 15:44:35 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-5" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > One way is to use the tee command, e.g.: > > [johnnyb@zappa johnnyb]$ ls | tee listing.txt > > will send the results of the ls command to STDOUT and also to the file > listing.txt. # man script To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message