#!/bin/sh
##############################################
# Aussortieren von Subdomains
# Author: Michael Jentsch
# Copyright (c): 2005 - all rights reserved
# Version: 1.21
#
# * This library is free software; you can redistribute it and/or
# * modify it under the terms of the GNU General Public
# * License as published by the Free Software Foundation; either
# * version 2.1 of the License, or (at your option) any later version.
# *
# * This library is distributed in the hope that it will be useful,
# * but WITHOUT ANY WARRANTY; without even the implied warranty of
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# * Lesser General Public License for more details.
# *
# * You should have received a copy of the GNU Lesser General Public
# * License along with this library; if not, write to the Free Software
# * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# You may contact the author of by e-mail at:
# [email protected]
#
# The latest version can be obtained from:
# http://m-software.de/
##############################################
egrep -i '^(www\.)?[a-zA-Z0-9\-]*\.(ab.ca|ac|ac.ac|ac.at|ac.be|ac.cn|ac.il|ac.in|ac.jp|ac.kr|ac.nz|ac.uk|ad|adm.br|adv.br|aero|af|ag|agro.pl|ah.cn|aid.pl|am|am.br|arq.br|art.br|arts.ro|as|asn.au|asso.fr|at|atm.pl|au|auto.pl|bbs.tr|bc.ca|be|bio.br|biz|biz.pl|bj|bj.cn|br|br.com|by|bz|ca|cat|cc|cd|ch|cl|cn|cn.com|cng.br|cnt.br|co.ac|co.at|co.il|co.in|co.jp|co.kr|co.nz|co.uk|com|com.au|com.br|com.cn|com.fr|com.hk|com.mx|com.pl|com.ro|com.ru|com.sg|com.tr|com.tw|coop|cq.cn|cri.nz|cx|cz|de|dk|ecn.br|edu|edu.au|edu.cn|edu.hk|edu.mx|edu.pl|edu.tr|ee|eng.br|ernet.in|esp.br|etc.br|eti.br|eu.com|eu.lv|fi|firm.ro|fm.br|fo|fot.br|fr|fst.br|g13.br|gb.com|gb.net|gd.cn|gen.nz|gf|gg|gmina.pl|go.jp|go.kr|gob.mx|gov|gov.br|gov.cn|gov.il|gov.in|gov.mx|gov.sg|gov.tr|govt.nz|gr|gs|gs.cn|gsm.pl|gv.ac|gv.at|gx.cn|gz.cn|hb.cn|he.cn|hi.cn|hk|hk.cn|hl.cn|hn|hn.cn|hu|hu.com|id.au|ie|il|in|ind.br|inf.br|info|info.pl|info.ro|int|io|is|it|iwi.nz|je|jl.cn|jor.br|jp|js.cn|k12.il|k12.tr|ke|kr|kz|lel.br|li|ln.cn|lt|ltd.uk|lu|lv|mail.pl|maori.nz|mb.ca|me.uk|med.br|media.pl|mg|miasta.pl|mil|mil.br|mil.nz|mil.pl|mil.tr|mn|mo.cn|ms|muni.il|museum|mx|my|na|name|nb.ca|ne.jp|ne.kr|net|net.au|net.br|net.cn|net.hk|net.il|net.in|net.mx|net.nz|net.pl|net.ru|net.sg|net.tr|net.tw|nf.ca|nl|nm.cn|nm.kr|no|no.com|nom.br|nom.pl|nom.ro|ns.ca|nt.ca|nt.ro|ntr.br|nu|nx.cn|nz|odo.br|on.ca|or.ac|or.at|or.jp|or.kr|org|org.au|org.br|org.cn|org.hk|org.il|org.mx|org.nz|org.pl|org.ro|org.ru|org.sg|org.tr|org.tw|org.uk|pc.pl|pe.ca|pl|plc.uk|pm|ppg.br|pr|presse.fr|priv.pl|pro|pro.br|psc.br|psi.br|pt|qc.ca|qc.com|qh.cn|re|re.kr|realestate.pl|rec.br|rec.ro|rel.pl|res.in|ro|ru|sa.com|sc.cn|school.nz|se|se.com|se.net|sg|sh|sh.cn|shop.pl|si|sk|sk.ca|sklep.pl|slg.br|sn.cn|sos.pl|st|store.ro|targi.pl|tc|tf|tj|tj.cn|tk|tl|tm|tm.fr|tm.pl|tm.ro|tmp.br|to|tourism.pl|tr|travel.pl|tur.br|turystyka.pl|tv|tv.br|tw|tw.cn|ua|ug|uk|uk.com|uk.net|us|us.com|uy.com|uz|vc|vet.br|vg|wf|ws|www.ro|xj.cn|xz.cn|vu|yk.ca|yn.cn|yt|za.com|zj.cn|zlg.br)$' $1 $2