Removing Clients

To remove the host 'precollege'

rm ~/data/hosts/*.precollege.*
vi ~/awstats-6.5/wwwroot/index/index_nav.html

It would be a trick to auto the last one,such as

cat index_nav | sed -e '/precollege/d' > index_nav

Like this (confirmed works)
{code:none}
su - stats
rm ~/data/hosts/*.precollege.*
rm ~/awstats-6.5/wwwroot/cgi-bin/awstats.precollege.*
cat ~/awstats-6.5/wwwroot/index/index_nav.html | sed -e /precollege/d > ~/awstats-6.5/wwwroot/index/index_nav.html
{code}
Comments