使用grep要注意的地方

[maijunjin@localhost testGrep]$ grep 1 ./             #没有结果
[maijunjin@localhost testGrep]$ grep 1 .              #没有结果
[maijunjin@localhost testGrep]$ grep 1 ./*            #正确写法
./1:1

查找某个目录下的所有文件必须指定*号

posted @ 2014-08-14 08:02  wuhn  阅读(152)  评论(0编辑  收藏  举报