User Tools

Site Tools


shared_hosting:info_grep

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

shared_hosting:info_grep [2007/08/27 12:08] (current)
Line 1: Line 1:
 +<text>
 +for i in `ls aletsch/`;do echo $i >> al.txt;cat aletsch/$i|sort -n|grep -E "DNS=|PLAN|STARTDATE" >> al.txt;echo "newline" >> al.txt;done
  
 +
 +
 +cat al.txt |tr -d '\n'|sed -e 's/newline/\
 +/g'|sed -e 's/DNS=/\ /g'|sed -e 's/PLAN=/\ /g'|sed -e 's/STARTDATE=/\ /g'|awk '{print "echo",$1,";echo echo;echo",$2,";echo echo;echo",$3,";echo echo;date -r",$4,"+%Y-%m-%d",";echo newline"}'|sh|tr -d '\n'|sed -e 's/newline/\
 +/g'|sed -e 's/echo/\ /g'
 +
 +cat aletsch.csv|cut -d, -f1
 +
 +cat > asd
 +
 + for i in `cat asd`;do echo $i;echo " ";cat /home/$i/.contactemail;echo " ";echo  newline;done|tr -d '\n'|sed -e 's/newline/\
 +/g'
 +
 +
 +cat /var/cpanel/users/* | grep DNS= | cut -d= -f2 > /root/m.txt
 +wget -O /root/byd.txt http://adiungo.com/byd.txt
 +
 +cat m.txt byd.txt byd.txt | sort -n | uniq -c | sort -n | grep "1 " | awk '{print "find /var/cpanel/users |xargs grep", $2}' | sh > /root/res.txt
 +
 +for i in `cat /root/res.txt | grep DNS= | cut -d: -f1 | cut -d\/ -f5`;do /scripts/suspendacct $i "autoauspsndscript";done
 +
 +
 +</text>
shared_hosting/info_grep.txt ยท Last modified: 2007/08/27 12:08 (external edit)