![](/img/trans.png)
[英]How to find all tar files in various sub-folders, then extract them in the same folder they were found?
[英]run all .bach in a folder and sub-folders
我有一个包含许多子文件夹和子子文件夹的文件夹。 所有.bach文件同名 --> R_batch_1_1.bash
通常我使用: sbatch R_batch_1_1.bash
来一一运行。
有谁知道如何一次性为文件夹和子文件夹中的所有 the.bach 执行此操作?
您可以在子目录中找到所有文件并使用以下命令运行它们:
find yourdirectory/ -name "R_batch_1_1.bash" -type f | xargs sbatch
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.