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?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
migrated from stackoverflow.com Apr 6 '11 at 0:29
|
If you really mean regexp instead of shellglob, you may want to use
eg.
the option |
|||
|
|
|
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 |
|||||||
|
|
If you are just concerned with matching the name you can simply use '-name' in find.
|
|||
|
|