fork download
  1. #!/bin/bash
  2. s="123 123 123 123
  3. 1 2 3 45
  4. 1 3 5
  5. hello 123 my 1 name 2 is 3"
  6.  
  7. awk '{cnt=0; for (i=1; i<=NF; ++i) { if ($i ~ /^[0-9]+$/) { cnt++ } } }cnt>3' <<< "$s"
Success #stdin #stdout 0.01s 5516KB
stdin
Standard input is empty
stdout
123  123  123  123 
1 2 3 45
hello 123 my 1 name 2 is 3