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!
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!
You can use find
command:
find . -type f -name '*.xml'
Since you tagged the question with bash:
shopt -s extglob globstar
ls !(exclude.this.dir)/**/*.xml