linux下find命令 -name -o 的作用

时间:2014-07-01 17:59:32   收藏:0   阅读:215

find的语法:

find [起始目录] 寻找条件 操作

find ./msg -name "*.h" -o -name "*.hpp"

在当前msg目录下查找以.h或.hpp结尾的文件,

这两个 -name 之间的 -o 表示逻辑或(or)

linux下find命令 -name -o 的作用,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!