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.
ディレクトリ名 '1' (引用符なし) を持っていて、そのディレクトリを (その内容と共に) '2' から '70' までの多くのディレクトリ名にコピーしたい場合、Linux コマンドを使用してこれを行うにはどうすればよいですか?
そのため、各コピーは 1 回だけ実行されますが、(少なくとも bash では)
for x in $(seq 2 70); do cp -r 1 $x; done
やるべき