I need to get values from log file, values may be different and need to get it.
example of string:
Tests run: 1042, Failures: 0, Errors: 0, Skipped: 0
i try with:
cat log.log | grep '^Test run:' | sed -e 's/^Test run: //'
but i get:
1042, Failures: 0, Errors: 0, Skipped: 0
i need 4 commands that result was like
first command (tests run)
1042
second command (Failures)
0
third command (Errors)
0
fourth commad (Skipped)
0
You can use the following four commands to obtain the values for
Tests run,Failures,Errors, andSkippedrespectively: