find files filtered by multiple extensions

Posted by Dave Jarvis on Super User See other posts from Super User or by Dave Jarvis
Published on 2010-04-01T01:31:40Z Indexed on 2010/04/01 1:33 UTC
Read the original article Hit count: 347

Filed under:
|
|
|

What is the correct syntax for:

find . -type f -name \*.\(shtml\|css\)

This works, but is inelegant:

find . -type f -name \*.shtml > f.txt && find . -type f -name \*.css >> f.txt

Fewer keystrokes?

© Super User or respective owner

Related posts about find

Related posts about filename