我已经读过
使用grep --exclude/ - include语法来查看某些文件,
但在我的CentOS6.4中,当我这样做时
grep --exclude=*.cmd ckim * -r
Run Code Online (Sandbox Code Playgroud)
我从*.cmd文件中看到了很多grepped行.
所以似乎排除选项对我不起作用.
怎么了?
当然我可以做的事情
grep ckim \`find . -name \*.c -print\`
Run Code Online (Sandbox Code Playgroud)
但我想知道为什么grep不起作用.
Tia*_*opo 31
你可以引用模式:
grep -r --exclude="*.cmd" "ckin" ./
Run Code Online (Sandbox Code Playgroud)
PS../
是当前目录
归档时间: |
|
查看次数: |
32734 次 |
最近记录: |