Im trying to grep names of txt files containing numbers and numbers only, but I have no idea if grep is even suitable for that job.
if I have files like below...
FILE1: 12324
FILE2: 12345q
FILE3: qqerxv
It should give me only the name of FILE1
.
I've tried grep -r -l [a-zA-Z]
but that gives me the opposite.
What pattern should I use? What should I do to grep everything but files containing anything but numbers
How do I grep files that contains ONLY numbers?