fork download
  1. #!/bin/bash
  2. s="Some kernel: 10KB
  3. Some kernel: 10001KB
  4. And kernel: 2001KB"
  5. echo "$s" | grep 'kernel:' | grep '\b[1-9][0-9]\{3,\}KB'
Success #stdin #stdout 0s 19632KB
stdin
Standard input is empty
stdout
Some  kernel: 10001KB
And kernel: 2001KB