inotifywait - exclude regex pattern formatting

后端 未结 6 814
抹茶落季
抹茶落季 2020-12-31 11:21

I am trying to use inotifywait to watch all .js files under my ~/js directory; how do I format my regex inside the follow

6条回答
  •  一个人的身影
    2020-12-31 12:12

    I posted a patch here that adds --include and --includei options that work like negations of --exclude and --excludei:

    https://github.com/browndav/inotify-tools/commit/160bc09c7b8e78493e55fc9f071d0c5575496429

    Obviously you'd have to rebuild inotifytools, and this is relatively untested, but hopefully it can make it in to mainline or is helpful to someone who comes across this post later.

提交回复
热议问题