the solution is this:
##
##
cat dominios.txt | while read line
do
if (echo $line |grep "\.it" >> /dev/null )
then
echo ".";
else
echo -e "
\nzone \"${line}\" {
type master;
file
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
when you use a shell script this run on the specific shell whith the user
ambient path because is to diferent run a script on cron or tty
i put the complet path on all comand than i use!,
##
/sbin/prog1 -d /home/pedro
/bin/prog2 -frp > /home/pedro/filename.txt
##
sorry for my eanglish
And
3 matches
Mail list logo