Date: Wed, 6 Feb 2002 14:14:27 -0800 From: Matthew Hunt <mph@astro.caltech.edu> To: Zhihui Zhang <zzhang@cs.binghamton.edu> Cc: Dan Nelson <dnelson@allantgroup.com>, freebsd-questions@FreeBSD.ORG Subject: Re: time usage question Message-ID: <20020206141427.A94931@wopr.caltech.edu> In-Reply-To: <Pine.SOL.4.21.0202061638070.10466-100000@opal>; from zzhang@cs.binghamton.edu on Wed, Feb 06, 2002 at 04:39:56PM -0500 References: <20020206213251.GJ1066@dan.emsphone.com> <Pine.SOL.4.21.0202061638070.10466-100000@opal>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <mph@astro.caltech.edu> * 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020206141427.A94931>