Let's say I need to find this path /<some_where_in_root>/find/this/path
and the only information I have is /find/this/path
. What would be the best means of locating the full directory?
I basically have a program that creates a directory and after the directory is created I'd like to see if a path now exist within the directory that was created.
So far I've tried find . -type d -name "/find/this/path"
but this obviously interprets /find/this/path
as a string. Is there any way to use find in this situation? Would it be best to just parse the path I have and take the path
portion and do a search on this string?