port exclude pattern from inotifywait to fswatch

175 Views Asked by At

So I have this regex exclude pattern which works excellent with inotifywait on Linux: .*\.\w+\.\w{6}

Now I want to port it to fswatch on macos and use with -e or -Ee flag. What have I tried so far without any luck:

-e ".*\.\w+\.\w{6}"
-Ee ".*\.[[:alpha:]]+\.[[:alpha:]]{6}"
-e ".*\..+\..{6}" # not exactly, but I'm really desperate :)

I've also tried these patterns with various combinations of double and single quotes and with -e or -eE combinations.

0

There are 0 best solutions below