文献:http://www.verydemo.com/demo_c167_i100747.html
#!/bin/sh
#set -x
echo -n "can you write device drivers? "
read answer
answer=`echo $answer | tr [a-z] [A-Z]`
if [ $answer = Y]
then
echo "Wow, you must be very skilled"
else
echo "neither can i "
fi
cat temp3.properties | while read LINE
do
row4index=`echo "$LINE" | awk -F "=" '{print $1}'`
index4index=`echo "$LINE" | awk -F "=" '{print $2}'`
cat temp5.properties | while read LINE4TYPE
do
row4dcc=`echo "$LINE4TYPE" | awk -F "=" '{print $1}'`
type4dcc=`echo "$LINE4TYPE" | awk -F "=" '{print $2}'`
cat temp7.properties | while read LINE4POSTPAIDFLAG
do
row4flag=`echo "$LINE4POSTPAIDFLAG" | awk -F "=" '{print $1}'`
type4flag=`echo "$LINE4POSTPAIDFLAG" | awk -F "=" '{print $2}'`
if [ $row4index -eq $row4dcc ] && [ $row4index -eq $row4flag ]
then
echo "${index4index}|${type4dcc}|${type4flag}">>tempresult.properties
fi
done
done
done
if [ -f $HOME/bus_gv_install/bin/common_ins.rc ]; then
. $HOME/bus_gv_install/bin/common_ins.rc
…………………………………………………………………………