Is it possible to locate
a path in the file system like what can be done for file names? For example I want to find all paths in system that include 'foo/bar', which may have the following result:
/home/myname/test/foo/bar/hello
/var/www/site/foo/bar
locate "*/bar/avi"
gave me the fastest and the most accurate result. – B Faley Jul 13 '16 at 07:45