1
2 #### times shows two formatted lines
3 output=$(times)
4 echo "$output" | while read line
5 do
6 echo "$line" | egrep -q '[0-9]+m[0-9]+.[0-9]+s [0-9]+m[0-9]+.[0-9]+s' && echo "pass"
7 done
8
9 echo "$output" | wc -l
10 ## status: 0
11 ## STDOUT:
12 pass
13 pass
14 2
15 ## END