サブディレクトリに再帰的に見つけるbashのループ私は次のようなbashスクリプトを持って
/public_html/index.php
/public_html/forums/status.php
/public_html/really/deep/file/in/many/sub/dirs/here.php
FILES=public_html/*.php
を変更するにはどうすればよいですか?
はまた、私はそこに少なくとも1つのファイルであるか、そうでなければ
Processing *.php file...
と書くことができます。これはpwdからの結果だけを返します。 – qwertymk
私はそうは思わない。 (GNUのfindを使っていますか?) 'mkdir -p public_html/{a、b、c}; touch public_html/{a、b、c}/{1,2,3} .php; find public_html -type f -name * .php'は9つのファイルすべてを返します。 – sgibb
これは 'FILES =" $(find public_html -type f -name '* .php') "' – qwertymk