Run all shell scripts in folder

前端 未结 3 1632
醉话见心
醉话见心 2020-12-30 01:24

I have many .sh scripts in a single folder and would like to run them one after another. A single script can be executed as:

bash wget-some_long_         


        
3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-30 01:46

    There is a much simpler way, you can use the run-parts command which will execute all scripts in the folder:

    run-parts /path/to/folder
    

提交回复
热议问题