Shell redirection
E K
ekg_ab-FFYn/CNdgSA at public.gmane.org
Thu Dec 29 15:30:24 UTC 2011
Try
time command &> outputFile
eg.
time ls -la &> flist
flist will contain the list of files.
Hope that helps
Equbay
--- On Wed, 12/21/11, Jamon Camisso <jamon.camisso-H217xnMUJC0sA/PxXw9srA at public.gmane.org> wrote:
> From: Jamon Camisso <jamon.camisso-H217xnMUJC0sA/PxXw9srA at public.gmane.org>
> Subject: Re: [TLUG]: Shell redirection
> To: tlug-lxSQFCZeNF4 at public.gmane.org
> Received: Wednesday, December 21, 2011, 3:07 PM
> On 21/12/11 02:57 PM, Neil Watson
> wrote:
> > Suppose I have a command:
> >
> > "time <other_cmd>"
> >
> > How can I redirect the other command's stdout and
> stderr but not the
> > output of time?
>
> time can write to a file with -o, and append to said file
> with -a. Is
> that enough to get you going?
>
> Jamon
> --
> The Toronto Linux Users Group.
> Meetings: http://gtalug.org/
> TLUG requests: Linux topics, No HTML, wrap text below 80
> columns
> How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
>
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list