grep -o '26635025585100001' TYYH20190101.txt |wc -l
'select' 是要匹配的字符串, a.log 是目标文件
"areaCode":"020","num":"2020415727070000"},{"areaCode":"0663","num":"26635025585100001"}
grep -o '26635025585100001' TYYH20190101.txt |wc -l
'select' 是要匹配的字符串, a.log 是目标文件
"areaCode":"020","num":"2020415727070000"},{"areaCode":"0663","num":"26635025585100001"}
本文标题:匹配某个字符串在文件中出现的次数
本文链接:https://www.haomeiwen.com/subject/mulpzqtx.html
网友评论