fork(1) download
  1. #!/bin/bash
  2. s='INFO 56783 Count [5987]
  3. INFO 67988 Count [4986]
  4. INFO 27679 Count [9865]'
  5. awk -F'[][]' '/Count \[[0-9]+]/ && $2 > 5000' <<< "$s"
Success #stdin #stdout 0.01s 5520KB
stdin
Standard input is empty
stdout
INFO 56783 Count [5987] 
INFO 27679 Count [9865]