QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1719|回复: 1

问一个find的用法

[复制链接]
发表于 2007-1-20 10:02:26 | 显示全部楼层 |阅读模式
查找这样的普通文件:
不在/root/和 /home/*/下的隐藏目录下;
且 修改时间在昨天22:30和今天9:00之间。
 楼主| 发表于 2007-1-20 10:56:40 | 显示全部楼层
应该是这样吧,不知对不:

touch -t 0701182000 find1
touch -t 0701190900 find2

find / \( -path '/root/.*' -o -path '/home/*/.*'
-o -path '/proc' -o -path '/dev' \) -prune -o
-newer find1 ! -newer find2 \( -type f -o -type d \) -print
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-25 18:37 , Processed in 0.074995 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表