因此在 Linux 中我只需这样写:
for((i=1; i<=100; ++i)); do
echo $i
./gen $i > input
./a < input > out1
./brute < input > out2
diff -w out1 out2 || break
done
然而在 Windows 中,即使我将其更改为,./gen
它gen.exe
也会显示此错误:
1
test.sh: line 3: gen.exe: command not found
test.sh: line 4: a.exe: command not found
test.sh: line 5: brute.exe: command not found