1
2 seq 201 | echo 0 > toVMs/vDataFileToVMs
3 echo all: > resultAll
4
5 for i in {1..100}
6 do
7 seq 201| sed 's/^/000/g' | sed 's/.*\(...\)$/\1/g' | xargs -i bash -c "echo {}: ; echo \"/mnt/a.out {} \" | socat - TCP:127.0.0.1:5{}" | tee resultOnce
8 cat resultOnce >> resultAll
9 cat resultOnce | grep -v : > toVMs/vDataFileToVMs
10 done
没什么好解释的。很容易的。
网友评论