我想在Mac终端中执行一系列命令。是否可以准备一个包含一系列命令的文件,并通过终端提交该文件?例如...
commands.txt 包含多个命令,每行一个:
我该怎么做?
./executable_file -f sub_a 100
./executable_file -f sub_b 100
./executable_file -f sub_c 100
./executable_file -f sub_d 100
...
我该怎么做?