Linux find command gotcha?

前端 未结 4 1379
再見小時候
再見小時候 2021-01-19 02:18

Hi I am trying to find all js & css files in one find command. I tried all of the below but in vain:

find WebContent -name \"*.[jc]ss?\"

find WebContent         


        
4条回答
  •  鱼传尺愫
    2021-01-19 02:45

    use the -iname option case insensitive

    find WebContent \( -iname "*.js" -o -iname "*.css" \)
    

提交回复
热议问题