[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

shell script



hi I have this script:
##################################################

rm -f *.tmp


while  read line; do echo -e "\nzone  \"${line}\" {
      type master;
      file  \"tuttoqui.zone\";
      allow-transfer {
             151.38.133.13;
      };
};\n" >>  named.tmp;  done < dominios.txt


##################################################

but I want jump the process whe in the  variable ${line} I have a string with ".it" anyting like
##################################################
if (condition  ){

while  read line; do echo -e "\nzone  \"${line}\" {
      type master;
      file  \"${line}\";
      allow-transfer {
             111.111.111.111;
      };
};\n" >>  named.tmp;  done < dominios.txt
}

##################################################

tank in advance

Reply to: