1

For example all files matching ".doc" and ".txt". I know how to find one extension type, but I need multiple without running multiple commands.

1

1 Answer 1

1

You can combine tests in find using -o (OR)

find path/to/somedir \( -name '*.doc' -o -name '*.txt' \)

See man find, in particular

Not the answer you're looking for? Browse other questions tagged .