A
A
antimodern2019-02-21 01:48:58
bash
antimodern, 2019-02-21 01:48:58

How to execute a find command with a condition of two filename extensions?

How to do something like this? Those. find files with extension one or two.
find . -type f -name '*.otf' || '*.ttf'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mureevms, 2019-02-21
@antimodern

find . -type f -regex ".*\.\(otf\|ttf\)"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question