bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: time command


From: Francis Litterio
Subject: Re: time command
Date: Mon, 23 Jun 2008 12:53:01 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (windows-nt)

Eric Blake wrote:

> According to Yu Cha Yung on 6/23/2008 12:24 AM:
> |    time ls > time.txt
> |    It doesnt show the information of time in time.txt.
>
> That's because in bash, time is a reserved word, and because time's output
> goes to stderr, not stdout.

[...]

> \time ls >time.txt 2>&1

Or use Bash's builtin "command" command, like this:

        command time ls >time.txt 2>&1
--
Fran





reply via email to

[Prev in Thread] Current Thread [Next in Thread]