摘要: grep可以在搜索过程中使用通配符指定(include)或排除(exclude)某些文件。 使用--include选项在目录中递归搜索所有的 .c和 .cpp文件: $ grep "main()" . -r --include *.{c,cpp} 注意, some{string1,string2,string3}会被扩展成somestring1 somestring2,somestring3。 ... 阅读全文
posted @ 2019-06-28 16:10 夏天的西瓜君 阅读(2615) 评论(0) 推荐(0) 编辑