linux find files ending with

C++
find . | grep *\.rb

Source

Also in C++: