How to grep all the njmbers in a file : Cat test 
1
0
2
Operator
3

Cat test ¦ grep [0-9] 
>> 1

The test file contains the baove values. When i grep the test file  using grep [0-9] it gives only 1 as output.. How to grep all the numbers in the test file