Using only SED (ubuntu20.4), I need to print sentences that have at least 2 numbers or more. Then, print only the first two words of the sentence. I was able to perform the second part, but the first goal, I do not know how to perform.
this is the file:
ab c1d
dea 1 a zz7 www44
xy12 abc xyz
xy1 ab XYZ
xy ab X2YZ 3
And this is what I've done so far:
sed -E "s/^[ ]*([^ ]+[ ]+[^ ]+).*/\1/" $* > 123