inotifywait - exclude regex pattern formatting

后端 未结 6 631
抹茶落季
抹茶落季 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:14

    I've tried the (?!) thing

    This thing is called negative lookahead and it is not supported by POSIX ERE.

    So you have to do it the hard way, i.e. match everything that you want to exclude.

    e.g.

    \.(txt|xml) etc.

提交回复
热议问题