#!/bin/bash export LANG=C IP=`hostname -I`date=`date +%G%m%e`echo $IPecho $date if [ ! -d ./1/$IP ];then mkdir ./1/$IPfi echo /etc/httpd/logs/admin/access.$date.logecho /etc/httpd/logs/admin/1/$IP/echo /etc/httpd/logs/admin/1/$IP/ |cut -d ' ' -f 1 > ./desc_IP DESC=`cat ./desc_IP`echo $DESC /bin/cp -rp /etc/httpd/logs/admin/access.$date.log $DESC ls $DESC exit 0