在 -name 和 -iname 之间使用 FIND 有什么区别

Fre*_*ers 22 find

好吧,问题说明了一切,我都看过

find -name 
Run Code Online (Sandbox Code Playgroud)

find -iname 
Run Code Online (Sandbox Code Playgroud)

到处使用,没有明显的模式。

有人可以解释这些差异吗,也许可以用一个例子来澄清?

ste*_*ver 32

从 GNUfind手册页:

   -iname pattern
          Like -name, but the match is case insensitive.  For example, the
          patterns `fo*' and `F??' match  the  file  names  `Foo',  `FOO',
          `foo',  `fOo',  etc. 
Run Code Online (Sandbox Code Playgroud)

  • 许多工具(和大多数正则表达式解释器)都有不区分大小写的选项。Unix/Linux 并不敌视大小写,他们只是承认大小写之间存在差异。 (2认同)