find 命令的一些应用

1736阅读 0评论2009-09-15 fucj
分类:LINUX

1、用find命令查找特定时间点的文件
   touch -t 04241220 starttemp 
   touch -t 06241220 endtemp 
   find [dir] -newer starttemp -a ! -newer endtemp -exec ls -la {} \;
   rm startemp endtemp
 
2、查找目录
    find \dir -name -type d
 
上一篇:自动执行交互式工具一(管道或者here文档)
下一篇:mysql的一些常用命令