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.
我有 5 个文件夹(fld1、fld2、fld3、fld4、fld5),我想使用 bash 命令在所有 5 个文件夹中自动复制一个名为 pippo.txt 的文件。谁能帮我?
提前致谢
尝试这个:
for i in fld[1-5] do cp pippo.txt $i done
或这个:
seq 5 | xargs -n1 -I{} cp pippo.txt fld{}