I am trying to use inotifywait to watch all .js files under my ~/js directory; how do I format my regex inside the follow
inotifywait
~/js
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.
\.(txt|xml)