saving the results of the time command while discarding the results of the command being timed (unix

Posted by John Kube on Super User See other posts from Super User or by John Kube
Published on 2010-04-06T20:55:54Z Indexed on 2010/04/06 21:03 UTC
Read the original article Hit count: 112

Filed under:
|
|
|

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!

© Super User or respective owner

Related posts about unix

Related posts about time