Changes

Jump to: navigation, search

Get-root-zone

125 bytes removed, 16:40, 19 October 2016
no edit summary
<pre>
#!/bin/bash # Created by: Raymond Chan # for OPS535 # version 0.5 # (c) 20102016 - update for new wiki site url=http://zenit.senecac.on.ca/wiki/index.php/Domainreg if [ ! -f raw.txt ] then echo "Gettting wiki file from the web ..." >&2 wget -O raw.txt $url fi buffer=$(cat raw.txt| grep ^'</td><td>') nl=$(echo "$buffer"|wc -l) a=0 b=5 while [ $a -lt $nl ] do stuff=$(echo "$buffer"| head -"$b" | tail -5|nl|sed -e "s/<\/td><td>/x/g") # echo "$stuff" fields=$(echo "$stuff"|sed -e "s/ //g"|awk -Fx {'print $2'})
parameters=$(if [ ! -f raw.txt ]then echo "Gettting wiki file from the web ..." >&2 wget -O raw.txt $fields)urlfi  paratestbuffer=$(echo $parameters cat raw.txt| sed -e "s/ //g"grep ^'<td>') ccnl=$(echo "$paratest buffer"| wc -wl) # echo "paratest cc is $cc"a=0b=6
if while [ $cc a -gt 0 lt $nl ] then do # stuff=$(echo "$a buffer"| head -"$parametersb" | tail -5|nl|sed -e "s/<td>/x/g") #read yyy echo "$stuff" set fields=$(echo "$stuff"|sed -e "s/ //g"|awk -Fx {'print $parameters2'})
if [ " parameters=$(echo $1" !fields) cc= "" -a "$3" != "" (echo $parameters | wc -a w) # echo "paratest cc is $4cc" != "" ] then
if [ "$cc" -gt 0 ] then #echo -e $a $parameters #read yyy set $parameters if [ "$1" != "domainname" ] then if [ "${1}. \tIN \tNS \t" != "" -a "$4.3" != "" echo -e a "${4}. \tIN \tA \t$3" echo != " "] then
echo -e "${1}. \tIN \tNS \t$4." echo -e "${4}. \tIN \tA \t$3" echo " " fi fi fi
let a=a+56 let b=b+56
#read xxx done
</pre>
1,760
edits

Navigation menu