2016-06-07 ■ #!/bin/sh while read linedo arg1=`cat script.txt | awk '{print $1}'` sh expect2.sh $arg1 if [ $? -ne 0 ]then echo "BREAK" break fi done<script.txt