find filenames NOT ending in specific extensions on Unix?

前端 未结 8 1609
悲&欢浪女
悲&欢浪女 2020-11-30 17:26

Is there a simple way to recursively find all files in a directory hierarchy, that do not end in a list of extensions? E.g. all files that are not *.dll or *.exe

8条回答
  •  北荒
    北荒 (楼主)
    2020-11-30 17:35

    $ find . -name \*.exe -o -name \*.dll -o -print
    

    The first two -name options have no -print option, so they skipped. Everything else is printed.

提交回复
热议问题