I would like to find a directory with name recursively up started from current directory and get it's absolute path. I don't know which directory contains what I need. So I have to check if each upper dir contains what I need.
For example I have such directory tree:
.
├── root
├── ...
├── someDir000
│ └── ...
│ └── someDir001
│ ├── otherDir000
│ └── dirPathIWantToFind
│ └── ...
├── someDir002
│ ├── anotherDir000
│ └── anotherDir001
│ ├── myCurrentDir
I'm currently in myCurrentDir and want to find a path for ** dirPathIWantToFind**, so it should be /root/someDir000/someDir001/dirPathIWantToFind
.
I know it's possible to go recursively dip down from current dir, but how to do it UP?