fork download
  1. #!/bin/bash
  2. sed -nE '/^\[.*\]$/h;s/^Results= ?//;t r;b;:r;H;x;s/\n/ /;p'
Success #stdin #stdout 0s 4388KB
stdin
[test1]
duration
summary
code=
Results= PASS

[test2]
duration
summary=x
code=
Results=FAIL

.....

[testX]
duration
summary=x
code=
Results= PASS
stdout
[test1] PASS
[test2] FAIL
[testX] PASS