Reputation: 186
Using the find
command is there a way to combine options:
i.e.
find . -type fd -name "somefile"
Although -type
ignores the second option; I'm looking to find only files or directories.
Upvotes: 2
Views: 203
Reputation: 785276
You can use -o
for OR condition in find:
find . \( -type d -o -type f \) -name "somefile"
Upvotes: 5