#!/bin/bash
s="123 1  2 3
1 2 3 45
14 2 3 4
123 a2
hello 123 my 1 name 2 is 3" 

grep -E '\<[0-9]+\>.*\<[0-9]+\>.*\<[0-9]+\>.*\<[0-9]+\>' <<< "$s"

