文件查找工具find¶
查找多个匹配条件(or)的文件¶
有时候我们需要查找 匹配A 或者 匹配B 的文件,例如,我们需要找到 *.py 和 *.html 文件,则 find 工具也提供了一个 -o 参数表示 or 来连接多个参数:
find Documents \( -name "*.py" -o -name "*.html" \)
例如,我在 iso镜像使用location参数进行virt-install安装虚拟机 找多个文件
有时候我们需要查找 匹配A 或者 匹配B 的文件,例如,我们需要找到 *.py 和 *.html 文件,则 find 工具也提供了一个 -o 参数表示 or 来连接多个参数:
find Documents \( -name "*.py" -o -name "*.html" \)
例如,我在 iso镜像使用location参数进行virt-install安装虚拟机 找多个文件