From owner-freebsd-questions Wed Feb 6 14:14:48 2002 Delivered-To: freebsd-questions@freebsd.org Received: from wopr.caltech.edu (wopr.caltech.edu [131.215.102.114]) by hub.freebsd.org (Postfix) with ESMTP id 05E7B37B419 for ; Wed, 6 Feb 2002 14:14:45 -0800 (PST) Received: (from mph@localhost) by wopr.caltech.edu (8.11.6/8.9.3) id g16MESX95061; Wed, 6 Feb 2002 14:14:28 -0800 (PST) (envelope-from mph) Date: Wed, 6 Feb 2002 14:14:27 -0800 From: Matthew Hunt To: Zhihui Zhang Cc: Dan Nelson , freebsd-questions@FreeBSD.ORG Subject: Re: time usage question Message-ID: <20020206141427.A94931@wopr.caltech.edu> References: <20020206213251.GJ1066@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from zzhang@cs.binghamton.edu on Wed, Feb 06, 2002 at 04:39:56PM -0500 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 On Wed, Feb 06, 2002 at 04:39:56PM -0500, Zhihui Zhang wrote: > Thanks. I have found a workaround (tell me if I am wrong): > > $ cat mycommand > ls | xargs rm > > $ time mycommand Do keep in mind that you can time any of the commands individually, not just the first one: $ ls | time xargs rm Also, you can time a whole sequence of commands by invoking a shell with -c command: $ time sh -c 'ls | xargs rm' This should be essentially the same as what you've done, but might be more convenient. -- Matthew Hunt * Science rules. http://www.pobox.com/~mph/ * To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message