list all xml files within a directory and subdirectory

bash, linux

Solution

You can use `find` command:

find . -type f -name '*.xml'

Problem

I want to list all .xml files in a dir and its subdir. I tried ls -LR but not able to filter out other files apart from .xml.. I want something like ls -LR | grep *.xml . Thanks!

Original source