运行此命令时出错,我认为该命令很清楚,可以理解。
cp file.txt /folder/*/*/*/file.txt
最佳答案
你需要一个循环来做到这一点:
for dir in /folder/*/*/*/; do cp file.txt "$dir"; done
关于linux - 尝试使用 cp 将文件复制到多个文件时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32685153/