shell正则匹配ip(学习shell笔记七)

[[email protected] ~]# vim test.txt 2014-08-17 20140907 14 03 22 192.168.1.2 121.168.2.3 123-212-2-3 [[email protected] ~]# grep "[0-9]\{1,3\}[.][0-9]\{1,3\}[.][0-9]\{1,3\}[.][0-9]\{1,3\}" test.txt 19
相关文章
相关标签/搜索