find full path given partial path
This one worked for me (using bash)
ls -l /**/folder1/subfolder2/**
You may do it like below:
find . -path "*folder1/folder2" -prune -exec find {} -type f -name file.txt \;
With -prune
you don't recurse after first match in a directory
Use the -path
option:
find . -path '*/folder1/subfolder2/*'