[英]Make find command case insensitive
我將如何更改以下命令:
find FOLDER -type f -regex ".*\.\(xls\|xlsx\|avi\|mov\|mp4\|mpg\|mpeg\|ts\|wav\|cap\|cc\|itt\|scc\|srt\|jpeg\|jpg\|png\|tif\|tiff\)
要查找不區分大小寫的擴展名,例如“ file.mpg”和“ file.MPG”?
使用不區分大小寫的謂詞( -ilname
, -iname
, -ipath
, -iregex
和-iwholename
)。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.