fork download
  1. #!/bin/bash
  2. s="123 1 2 3
  3. 1 2 3 45
  4. 14 2 3 4
  5. 123 a2
  6. hello 123 my 1 name 2 is 3"
  7.  
  8. grep -E '\<[0-9]+\>.*\<[0-9]+\>.*\<[0-9]+\>.*\<[0-9]+\>' <<< "$s"
  9.  
  10.  
Success #stdin #stdout 0.01s 5392KB
stdin
Standard input is empty
stdout
123 1  2 3
1 2 3 45
14 2 3 4
hello 123 my 1 name 2 is 3