![](/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.