经常使用shell语句

1.查看某一目录下含有"#include"关键字的.c文件 grep

grep "#include" `find -type f -name *.c` | cut -d ":" -f 1 | uniq 文件

cut:截取         uniq:去除重复的文件

相关文章
相关标签/搜索