3 seq 101 100 2001 | xargs -i bash -c "sed 's/^/{} /g' <(seq 52 -1 1)" | awk '{ print("cat zCompute_withQuanti.c | sed '\''s/1001/"$1"/g'\'' | sed '\''s/= 52/="$2"/g'\'' > tmp.c; gcc tmp.c; cat zzHJBComputing.cmd.benji | sed '\''s/1001/"$1"/g'\'' > tmp.cmd; chmod +x tmp.cmd; ./tmp.cmd; cp resultAll_benji resultAll_benji.grid"$1".weishu"$2".times200"); }' \
4 > tmp1
5 chmod +x tmp1
6 ./tmp1
其中用到了信息扩充策略,即| xargs -i bash -c "sed 's/^/{} /g' ,把数据流 seq 101 100 2001 和数据流 seq 52 -1 1,
每行交叉在一起。共1040个情况。