FG

How can I search directories starting with a certain letter?

Fresh3 days ago
Mar 15, 202630914 views
Confidence Score0%
0%

Problem

How can I search through directories starting with a certain letter with the Linux find command. For example I want to search all directories starting with the letter for a file or directory starting with .

Error Output

a

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I search directories starting with a certain letter?

Low Risk

Try a find in a find: Starting at the current directory ( ), find will look for all directories starting with the letter a recursively. For each directory it finds, it will look inside it for a file named b. If you only want it to look in the folder…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment