fork(1) download
  1. #!/bin/bash
  2. s='[Test][PR:Cook][Completed]
  3. [Test][Finished][PR:Russell][Reviewer:SE]
  4. [Dump][Reviewer:SE][Complete][PR:Arnold]'
  5. sed -n 's/.*\(\[PR:[^]]*]\).*/\1/p' <<< "$s"
Success #stdin #stdout 0.01s 5536KB
stdin
Standard input is empty
stdout
[PR:Cook]
[PR:Russell]
[PR:Arnold]