Yonah Russ writes:
>here is a sample output line:
>Time for alter_table_drop (91): 19 wallclock secs ( 0.02 usr 0.00 sys +
0.00 cusr 0.00 csys = 0.02 CPU)
>here is the regexp:
>/^(estimated |)time (to|for) ([^\s:]*)\s*\((\d*)(:\d*)*\)[^:]*:\s*([\d.]+)
.*secs \(\s*([^\s]*) usr\s*\+*\s*([^\s]*) sys.*=\s+([\d.]*)\s+cpu/i
It appears that the source has been modified from the original regexp.
Primary changes are:
time -> Time
cpu -> CPU
You may want to run the output thru
tr '[A-Z]' '[a-z]'
to change upper case to lower case to allow the regexp to work properly.
Brad Eacker (beacker@stripped)