When using grep you can search for a specific regex, but only inside of a file. Is there any way, I can search for a folder name?
|
feedback
|
migrated from stackoverflow.com Apr 6 '11 at 0:29
This question came from our site for professional and enthusiast programmers.
|
If you really mean regexp instead of shellglob, you may want to use
eg.
the option | |||
|
feedback
|
|
I usually use find:
or for more complex queries
As pointed out in the comments if you want case insensitive searches do -iname and -iregex | |||||||
feedback
|
|
If you are just concerned with matching the name you can simply use '-name' in find.
| |||
|
feedback
|
|
find is far better but a clunky answer to your question:
| |||
|
feedback
|