I want to find and print all 4 digit numbers (but not the whole line) in a file using regex in bash.
My sample file looks like this:
12 123 1234 2345 f