* パターンマッチング [#e228c934]

** 二重アスタリスク(*)でサブディレクトリにマッチさせる [#e4fcb8ce]
 .
 |-- A
 |   `-- a.txt
 |-- B
 |   `-- b.jpg
 `-- x.txt

 $ ls -1 **/*.txt
 A/a.txt

 $ ls -1 {,**/}*.txt
 A/a.txt
 x.txt

*** 参考 [#c47af315]
http://stackoverflow.com/questions/1690809/what-expands-to-all-files-in-current-directory-recursively


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS