linux find filetype

C++
find . -iname "*.err"
Source

Also in C++: