You cant do it in a single command, if this is what you were asking.
If you are not sure, how to get a list of the all the files with a specified extension, then have a look at
File.listfiles() method. This will give you a list of all immediate children of a directory. To drill down deep you can recursively process each child which is a directory.
BTW, not an advanced question.
[ June 04, 2008: Message edited by: Nitesh Kant ]