现在,我正在使用Pintos,我想通过编写一个shell脚本一次做多次“make check”。
我想做一个test-five.sh文件
#!/bin/bash/
for i in 1 2 3 4 5
do
make -j 8 check
done我认为运行这个test-five.sh文件,然后执行test-five.sh > result.txt就可以了。
但是,我不知道应该把这个文件放在哪个目录下,也不知道这是不是正确的方法。
发布于 2018-11-08 12:30:30
下面是计数为5的一行for循环:
for i in {1..5}; do echo 'command output'; done对于您的案例:
for i in {1..5}; do make -j 8 check; donehttps://stackoverflow.com/questions/53201182
复制相似问题