Show all 4 digit numbers (but not the whole line and exclude special characters appended to number) using regex in bash

后端 未结 0 608
春和景丽
春和景丽 2020-12-07 19:29

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         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题