您的位置:首页 > 其它

查找特定目录下包含特定字符的文件

2012-11-03 21:16 513 查看
查找20121029目录下包含1234567890字符的文件

方式一、

[root@localhost test]# grep -H -R '1234567890' 20121029

20121029/test1:1234567890|

20121029/test1:1234567890|

20121029/test1:1234567890|

20121029/test1:1234567890|

20121029/test1:1234567890|

方式二、

[root@localhost test]# grep '1234567890' $(find ./20121029 -type f)

./20121029/test1:1234567890|

./20121029/test1:1234567890|

./20121029/test1:1234567890|

./20121029/test1:1234567890|

./20121029/test1:1234567890|

./20121029/test1:1234567890|

本文出自 “坚持下去” 博客,请务必保留此出处http://zuoanlove.blog.51cto.com/1422941/1052970
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: