社区
其他技术讨论专区
帖子详情
s10的find不支持-maxdepth吗?
weixin_38048740
2005-08-18 11:20:09
find: bad option -maxdepth
find: [-H | -L] path-list predicate-list
如何指定深度?
...全文
13
1
打赏
收藏
s10的find不支持-maxdepth吗?
find: bad option -maxdepth find: [-H | -L] path-list predicate-list 如何指定深度?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
1 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
find命令 -
max
depth
及-min
depth
参数详解
find命令 - 基于目录深度的搜索 -
max
depth
: 指定遍历搜索的最大深度 例:查找当前目录下以get开头的所有文件 -min
depth
: 指定开始遍历搜索的最小深度 例:查找深度距离当前目录至少2个子目录的所有...
find 命令 -
max
depth
限定查找当前目录下的文件而不找子目录下的文件
-
max
depth
n 参数指定查找最大深度 eg: -
max
depth
1 查找当前目录 查找举例如下: 没有 “-
max
depth
1”则会查找子目录,有“-
max
depth
1”的选项则只查找当前目录
Linux控制删除深度!除find ./ -
max
depth
1 -name "*.c" | xargs rm -rf
find ./ -
max
depth
1 -name “*.c” | xargs rm -rf 也就是说-
max
depth
参数要写在其他参数的前面,同时在路径的后面 xargs命令 xargs命令通俗来讲就是将标准输入转成各种格式化的参数,所以命令[command 1] | xargs...
linux find -
max
depth
和xargs 用法
之所以能用到这个命令,关键是由于很多命令不
支持
|管道来传递参数,而日常工作中有有这个必要,所以就有了xargs命令,例如: 这个命令是错误的 find /sbin -perm +700 |ls -l 这样才是正确的 find /sbin -...
find: warning: you have specified the -
max
depth
option after a non-option argument
find: warning: you have specified the -
max
depth
option after a non-option argument -type, but options are not positional (-
max
depth
affects tests specified before it as well as those specified after ...
其他技术讨论专区
477
社区成员
790,952
社区内容
发帖
与我相关
我的任务
其他技术讨论专区
其他技术讨论专区
复制链接
扫一扫
分享
社区描述
其他技术讨论专区
其他
技术论坛(原bbs)
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章