#/bin/bash
cat hg_jetty_app.txt | awk '{print $1 }'| while read IP;
do
line=`cat redis1.txt | awk '{print $1}'`
echo $line
echo $line
if [[ $line == $IP ]]; then
`cat hg_jetty_app.txt | grep $line >> redis_jetty.txt`
else
echo $IP >> No_match_redis
fi
done