#!/bin/bash

while read line
do
   echo $line
   echo "select name,script_md5,script_name from umonitor3.t_monitor_item where script_name like '%$line%';" | mysql -uucloud -pucloud.cn -h 172.18.178.40 | sed '1d'
   echo
done < <(cat new)
