1 #!/bin/sh
2
3 while read line
4 do
5 str=$line
6 var1=`echo $str|awk -F ‘ ‘ ‘{print $1}‘`
7 var2=`echo $str|awk -F ‘ ‘ ‘{print $2}‘`
8 var3=`echo $str|awk -F ‘ ‘ ‘{print $3}‘`
9 echo $var1 $var2 $var3
10 java -Xms2048m -Xmx2048m -classpath protobuf-message.jar:protobuf-java-2.5.0.jar:jedis-2.4.2.jar:redisExp.jar com.asiainfo.nj.redisExp.RedisExpMain $var1 $var2 4 <<EOF
11 $var3
12 Y
13 EOF
14 done <aa.txt
时间: 2024-10-18 12:58:48