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