I'm having some issues dealing with the find
command; I don't know the syntax for it very well and I need to use it in a script to find a specific directory structure that could be located anywhere.
Basically, I have a structure like "project/dir1/dir2" that I know will always be exactly those three directories, with the same names, in that order. What may not be the same is how deep this structure is nested; for example you could have:
$HOME/project/dir1/dir2
or
$HOME/workspace/project/dir1/dir2
Basically I need a general way to locate the project/dir1/dir2
structure no matter how far deeply buried it is.
This will always be on Ubuntu. I thought about using locate, but then I'd have to guarantee that the locate db is always up to date.