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 命令执行此操作?
所以,每个副本只会做一次,但是(至少在 bash 中)
for x in $(seq 2 70); do cp -r 1 $x; done
应该这样做