列出目录和子目录中的所有xml文件 [英] list all xml files within a directory and subdirectory
本文介绍了列出目录和子目录中的所有xml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在目录及其子目录中列出所有.xml文件.我尝试了ls -LR,但无法过滤掉.xml以外的其他文件.
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..
我想要像ls -LR这样的东西|grep * .xml.
I want something like ls -LR | grep *.xml .
谢谢!
推荐答案
您可以使用 find
命令:
find . -type f -name '*.xml'
这篇关于列出目录和子目录中的所有xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文