摘要:        
正则匹配:grep -E "[a-z]+"只输出匹配到的文本:echo this is a line. | grep -o -E "[a-z]+\."统计匹配到的行数:grep -c匹配之外的行:grep -v多级目录中递归搜索:grep "text" . -R -n忽略大小写:grep -i匹配多个样式:grep -e "this" -e "line"grep中包括货排除文件:grep "main()" . -r --include *.{c,cpp}grep "    阅读全文
        
            posted @ 2014-03-09 10:40
good90
阅读(717)
评论(0)
推荐(0)
        
        
                    
                
浙公网安备 33010602011771号