FG
💻 Software

Search with "grep" for folder names

Fresh5 days ago
Mar 15, 202689804 views
Confidence Score0%
0%

Problem

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?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Search with "grep" for folder names

Low Risk

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

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment