您的位置:首页 > 其它

什么是BI商业智能?推荐一个很容易明白的理解!

2008-12-12 17:17 447 查看
<iframe align="center" marginwidth="0" marginheight="0" src="http://www.zealware.com/csdnblog336280.html" frameborder="0" width="336" scrolling="no" height="280"></iframe> #!/bin/sh
FILE=/usr/home/haoyu/ip_apnic
rm -f $FILE
wget http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest -O $FILE
grep 'apnic|CN|ipv4|' $FILE | cut -f 4,5 -d'|'|sed -e 's/|/ /g' | while read ip cnt
do
echo $ip:$cnt
mask=$(cat pow=32;
define log2(x) {
if (xpow--;
return(log2(x/2));
}
log2($cnt)
EOF
)
echo $ip/$mask>> cn.net
NETNAME=`whois -h whois.apnic.net $ip | sed -e '/./{H;$!d;}' -e 'x;/netnum/!d' |grep ^netname | sed -e 's/.*: /(.*/)//
1/g' | sed -e 's/-.*//g'`
case $NETNAME in
CHINANET|CNCGROUP)
echo $ip/$mask >> $NETNAME
;;
CHINATELECOM)
echo $ip/$mask >> $NETNAME
;;
OTHER_NETNAME_here)
;;
esac
done
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: