5

awk to calculate timex output

view full story
linux-howto

http://www.unix.com – I have a timex 'dd' command that generates an output similar to this: Code: real 701.92 user 3.06 sys  469.10 for the moment, i m redirecting the output to a temp file to stage the calculation (using bc) for: a) MB/s b) cpu usage = 100*(user+sys)/real I am looking around for an 1-liner awk to do the same, hopefully. Thanks in advance. (HowTos)