首页 > 代码库 > linux find命令详解

linux find命令详解

http://www.cnblogs.com/wanqieddy/archive/2011/06/09/2076785.html
find 查找路径 命令选项 "查找的文件名规则" 打印或执行命令
 

 

 
 
#文件名字有无双引号没关系
find ./THexunSearchWeiboCrawl* -name 20130227 -print
find ./THexunSearchWeiboCrawl* -name "20130227" -print
 
[webuser@localhost dzh]$ find ./THexunSearchWeiboCrawl* -name 20130227 -print
./THexunSearchWeiboCrawl13/20130227
./THexunSearchWeiboCrawl20/20130227
./THexunSearchWeiboCrawl22/20130227
./THexunSearchWeiboCrawl36/20130227
./THexunSearchWeiboCrawl37/20130227
./THexunSearchWeiboCrawl40_copy11/20130227
./THexunSearchWeiboCrawl40_copy14/20130227
./THexunSearchWeiboCrawl40_copy18/20130227
./THexunSearchWeiboCrawl40_copy32/20130227
./THexunSearchWeiboCrawl40_copy5/20130227
./THexunSearchWeiboCrawl7/20130227

 

linux find命令详解