seq 101 100 2201 | xargs -i bash -c " \
cat zCompute.c | sed 's/1001/{}/g' > tmp.c; \
gcc tmp.c; \
cat zzHJBComputing.cmd.benji | sed 's/1001/{}/g' > tmp.cmd; \
chmod +x tmp.cmd; \
./tmp.cmd
cp resultAll_benji resultAll_benji.grid{}.times200 "
核心 seq 5 | xargs -i bash -c " xx; yy; zz; ww "
执行五次,每次4个小事,xx, yy, zz, ww,
对照就明白了,不解释。