Linux find 命令 -type 匹配多个文件:a.log, b.log, error_log.1
可以使用通配符来匹配多个文件,例如:
find /path/to/directory -type f -name 'a.log' -o -name 'b.log' -o -name 'error_log.1'
其中 -o 表示逻辑或(OR),即匹配其中任意一个文件名。如果要匹配更多文件,可以继续添加 -o -name 'filename'。
原文地址: http://www.cveoy.top/t/topic/ong8 著作权归作者所有。请勿转载和采集!