#grep -rnI "联系人" /home/logs/boss/* |grep "是否是店长"|awk '{print $1, $9 ,$10,$11,$12}'|awk -F: '{print $3}'| grep "人" |uniq >contact.txt
# grep -rnI . | grep "李"
-r,递归查找
-n,搜索结果显示行号
-i,忽略大小写
-v,反向匹配
-w,匹配整个单词
-E,匹配扩展的正则表达式
2021-12-28 03:38:05
#grep -rnI "联系人" /home/logs/boss/* |grep "是否是店长"|awk '{print $1, $9 ,$10,$11,$12}'|awk -F: '{print $3}'| grep "人" |uniq >contact.txt
# grep -rnI . | grep "李"
-r,递归查找
-n,搜索结果显示行号
-i,忽略大小写
-v,反向匹配
-w,匹配整个单词
-E,匹配扩展的正则表达式