You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm wanting to monitor for a file change two directories deep, where the filename is known but the middle directory is not. This is what I have so far:
whiletrue;do ls foo/*/bar.txt | entr -dp echo /_;done
If when I start the while loop the file foo/1/bar.txt exists, it seems like the directory foo/1 is detected to be watched, not foo (which makes total sense, it's just not what I'm trying to do).
I can see in the documentation there is a reference to -d being able to used with an explicitly supplied directory, but try as I might I can't get the syntax to work. I'm not sure if what I'm trying to achieve is not currently supported, or if it is and I'm just missing something from a syntax perspective.
Could you offer some clarification?
The text was updated successfully, but these errors were encountered:
I'm wanting to monitor for a file change two directories deep, where the filename is known but the middle directory is not. This is what I have so far:
If when I start the while loop the file
foo/1/bar.txt
exists, it seems like the directoryfoo/1
is detected to be watched, notfoo
(which makes total sense, it's just not what I'm trying to do).I can see in the documentation there is a reference to
-d
being able to used with an explicitly supplied directory, but try as I might I can't get the syntax to work. I'm not sure if what I'm trying to achieve is not currently supported, or if it is and I'm just missing something from a syntax perspective.Could you offer some clarification?
The text was updated successfully, but these errors were encountered: