Find directory name with wildcard or similar to "like"
UnixDirectoryUnix Problem Overview
I am using the following command to find a directory name.
find / -type d -name "ora10"
My problem is, I am not sure what the exact directory name is, so I would like to find directories similar to "ora10g"
, "ora10client"
, etc.
How can I do this with find?
Unix Solutions
Solution 1 - Unix
find supports wildcard matches, just add a *
:
find / -type d -name "ora10*"