[英]run all .bach in a folder and sub-folders
I have a folder with many sub-folders and sub-sub-folders.我有一个包含许多子文件夹和子子文件夹的文件夹。 All.bach files have the same name --> R_batch_1_1.bash
所有.bach文件同名 --> R_batch_1_1.bash
Usually I use: sbatch R_batch_1_1.bash
to run one by one.通常我使用:
sbatch R_batch_1_1.bash
来一一运行。
Does anyone know how to do this in once time for all the.bach in the folder and sub-folders?有谁知道如何一次性为文件夹和子文件夹中的所有 the.bach 执行此操作?
you can find all files in sub-directories and run them with:您可以在子目录中找到所有文件并使用以下命令运行它们:
find yourdirectory/ -name "R_batch_1_1.bash" -type f | xargs sbatch
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.