find files within a specific directory structure but a variable parent directory structure
Fresh3 days ago
Mar 15, 20269057 viewsConfidence Score0%
0%
Problem
I want to use the find command in linux to find a specific file nested within a specific directory structure, say . But this directory structure can itself be nested within any parent directory structure. Is it possible to a search like? What is the exact syntax?
Error Output
find directory_to_search -name "**/dir1/dir2/reqdfile"
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: find files within a specific directory structure but a variable parent directory structure
Low Risk
Use instead of : Note that there's only one asterisk.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix