Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
dirとそのサブdirにあるすべての.xmlファイルを一覧表示したいと思います。ls -LRを試しましたが、.xml以外の他のファイルを除外できませんでした。
ls-LR|のようなものが欲しい grep*.xml。
ありがとう!
find次のコマンドを使用できます。
find
find . -type f -name '*.xml'
質問にbashのタグを付けたので:
shopt -s extglob globstar ls !(exclude.this.dir)/**/*.xml