Wednesday, March 20, 2013

Domain Audit cPanel List Number Of Domains Per User

for x in `ls /var/cpanel/users|grep -v \/`; 
do echo "## Domains for user $x ##"; 
grep DNS /var/cpanel/users/$x|grep -v ^X|cut -d '=' -f 2|cat -n; 
echo; done > /root/domainAudit.txt