fork(2) download
  1. #!/bin/bash
  2. s='hi helo tmp#100000 bye
  3. 100000 hi bye
  4. hi 100000 bye'
  5. var=100000
  6. grep -E "(^|[[:blank:]])$var($|[[:blank:]])" <<< "$s"
Success #stdin #stdout 0s 4384KB
stdin
Standard input is empty
stdout
100000 hi bye
hi 100000 bye