Ignore case when trying to match file names using find command in Linux

前端 未结 5 1545
感情败类
感情败类 2021-01-11 10:52

Right now, all I know to use is:

find / -name string.*

that is case sensitive and it won\'t find files named:

1string.x
STR         


        
5条回答
  •  滥情空心
    2021-01-11 11:21

    If the system you are in does not have the find command provided by the GNU utils package, you can use the -name tag alone with POSIX bracket expressions as

    find . -name '*[Ss][Tt][Rr]ing*'
    

提交回复
热议问题