私はcp
1つのファイルを作成しようとしています:index.php
すべてのサブディレクトリ、およびそれらのサブディレクトリのサブディレクトリなどに、ルートのすべての子ディレクトリがindex.php
私はこれから始めました:
for d in */; do cp index.php "$d"; done;
これは、上位のサブディレクトリでのみ機能しました。私はそれ自体を次のように数回ネストしようとしました:
for d in */; do cp index.php "$d"; for e in */; do cp index.php "$e";for f in */; do cp index.php "$f"; done; done; done
しかし、それは何もしなかったようです