Suppose I have the directories:/foo//A/B/C/foo/D/E//F/foo/G/H/foo/I/How can get a result that lists all the directories whose basename exactly matchesa given string (for example foo in here)?/foo//A/B/C/foo//F/foo//F/foo/G/H/foo/
What is the best way to find directories that exactly match a string irrespective of the path?
command line;find;directory
You can use find:$ find / -type d -name foo -print