2

I'm timing how long it takes to run a command foo. I'm looking to append the results from the time command to a file, and discard the results from the foo command. I tried the following, but it didn't do what I want:

$ time ./foo > /dev/null >> output_from_time_command.txt

Any suggestions? Thanks!

1 Answer 1

4

BASH FAQ entry #32

{ time ls > /dev/null ; } 2>> output.txt

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .