Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # @Author: Nokia 1337
- # @Date: 2020-01-29 18:55:57
- # @Last Modified by: Nokia 1337
- # @Last Modified time: 2020-02-07 17:39:20
- BOLD='\e[1m'
- RED='\033[0;31m'
- GREEN='\033[0;32m'
- YELLOW='\033[0;33m'
- BLUE='\033[0;34m'
- MAENTA='\033[0;35m'
- LIGHTRED='\033[0;91m'
- LIGHTGREEN='\033[0;92m'
- LIGHTCYAN='\033[0;96m'
- BACKGREEN='\033[0;42m'
- BACKBLUE='\033[0;44m'
- NC='\033[0m'
- mkdir "$(pwd)/backup"
- mkdir "$(pwd)/filter_email"
- mkdir "$(pwd)/filter_email/mix"
- clear
- printf "${YELLOW}----------------------------------------------------- ${NC}\n"
- printf "${LIGHTCYAN}[INFO]${NC}${LIGHTGREEN} Melakukan validasi email pada semua files${NC}\n"
- hitung_files=1
- counter_files=$(ls *.txt | wc -l)
- for namefiles in *.txt
- do
- printf "|------[${LIGHTGREEN}$hitung_files/$counter_files${NC}]-> ${YELLOW}$namefiles${NC} ..."
- grep -Eiorh '([[:alnum:]_.-]+@[[:alnum:]_.-]+?\.[[:alpha:].]{2,6})' $namefiles | awk '{print tolower($0)}' > temp_list && mv temp_list $namefiles
- printf " ${GREEN}SELESAI!${NC}\n"
- #--------------------- PROSES FILTER ---------------------#
- printf "|-----> ${YELLOW}HOTMAIL FAMILY${NC} ..."
- grep -E "@hotmail|@live|@outlook|@msn" $namefiles | less >> "filter_email/hotmail.txt"
- printf " ${GREEN}SELESAI!${NC} \n"
- printf "|-----> ${YELLOW}YAHOO FAMILY${NC} ..."
- grep -E "@yahoo|@ymail|@rocketmail" $namefiles | less >> "filter_email/yahoo.txt"
- printf " ${GREEN}SELESAI!${NC} \n"
- printf "|-----> ${YELLOW}AOL FAMILY${NC} ..."
- grep -E "@aol|@aim." $namefiles | less >> "filter_email/aol.txt"
- printf " ${GREEN}SELESAI!${NC} \n"
- printf "|-----> ${YELLOW}APPLE FAMILY${NC} ..."
- grep -E "@me.|@icloud.|@mac." $namefiles | less >> "filter_email/applemail.txt"
- printf " ${GREEN}SELESAI!${NC} \n"
- printf "|-----> ${YELLOW}SBC FAMILY${NC} ..."
- grep -E "@juno.|@netzero|@optonline|@optimum|@att|@ameritech|@sbcglobal|@bellsouth|@flash|@nvbell|@pacbell|@prodigy|@snet|@swbell" $namefiles | less >> "filter_email/sbc.txt"
- printf " ${GREEN}SELESAI!${NC} \n"
- printf "|-----> ${YELLOW}GMAIL FAMILY${NC} ..."
- grep -E "@gmail|@google|@googlemail" $namefiles | less >> "filter_email/gmail.txt"
- printf " ${GREEN}SELESAI!${NC} \n"
- printf "|-----> ${YELLOW}BIGPOND${NC} ..."
- grep -E "@bigpond." $namefiles | less >> "filter_email/mix/bigpond.txt"
- printf " ${GREEN}SELESAI!${NC} \n"
- printf "|-----> ${YELLOW}NTLWORLD${NC} ..."
- grep -E "@ntlworld." $namefiles | less >> "filter_email/mix/ntlworld.txt"
- printf " ${GREEN}SELESAI!${NC} \n"
- printf "|-----> ${YELLOW}SHAW${NC} ..."
- grep -E "@shaw." $namefiles | less >> "filter_email/mix/shaw.txt"
- printf " ${GREEN}SELESAI!${NC} \n"
- printf "|-----> ${YELLOW}COX${NC} ..."
- grep -E "@cox." $namefiles | less >> "filter_email/mix/cox.txt"
- printf " ${GREEN}SELESAI!${NC} \n"
- printf "|-----> ${YELLOW}YANDEX${NC} ..."
- grep -E "@yandex." $namefiles | less >> "filter_email/mix/yandex.txt"
- printf " ${GREEN}SELESAI!${NC} \n"
- printf "|-----> ${YELLOW}COMCAST${NC} ..."
- grep -E "@comcast." $namefiles | less >> "filter_email/mix/comcast.txt"
- printf " ${GREEN}SELESAI!${NC} \n"
- printf "|-----> ${YELLOW}VERIZON${NC} ..."
- grep -E "@verizon." $namefiles | less >> "filter_email/mix/verizon.txt"
- printf " ${GREEN}SELESAI!${NC} \n"
- printf "|-----> ${YELLOW}centurylink${NC} ..."
- grep -E "@centurylink." $namefiles | less >> "filter_email/mix/centurylink.txt"
- printf " ${GREEN}SELESAI!${NC} \n"
- printf "|-----> ${YELLOW}spectrum${NC} ..."
- grep -E "@charter.|@spectrum." $namefiles | less >> "filter_email/mix/spectrum.txt"
- printf " ${GREEN}SELESAI!${NC} \n"
- printf "|-----> ${YELLOW}suddenlink${NC} ..."
- grep -E "@suddenlink." $namefiles | less >> "filter_email/mix/suddenlink.txt"
- printf " ${GREEN}SELESAI!${NC} \n"
- printf "|-----> ${YELLOW}Onet${NC} ..."
- grep -E "@onet." $namefiles | less >> "filter_email/mix/onet.txt"
- printf " ${GREEN}SELESAI!${NC} \n"
- printf "|-----> ${YELLOW}t-online${NC} ..."
- grep -E "@t-online.de." $namefiles | less >> "filter_email/mix/t-online.txt"
- printf " ${GREEN}SELESAI!${NC} \n"
- printf "|-----> ${YELLOW}GMX FAMILY${NC} ..."
- grep -E "@gmx.|@2trom.com|@accountant.com|@acdcfan.com|@activis.com|@activist.com|@adexec.com|@africamail.com|@aircraftmail.com|@allergist.com|@alumni.com|@alumnidirector.com|@angelic.com|@appraiser.net|@archaeologist.com|@arcticmail.com|@artlover.com|@asia-mail.com|@asia.com|@atheist.com|@auctioneer.net|@australiamail.com|@bartender.net|@bellair.net|@berlin.com|@bikerider.com|@birdlover.com|@blader.com|@boardermail.com|@brazilmail.com|@brew-master.com|@brew-meister.com|@bsdmail.com|@californiamail.com|@cash4u.com|@catlover.com|@cheerful.com|@chef.net|@chemist.com|@chinamail.com|@clerk.com|@clubmember.org|@collector.org|@columnist.com|@comic.com|@computer4u.com|@consultant.com|@contractor.net|@coolsite.net|@counselloer.com|@cutey.com|@cyber-wizard.com|@cyberdude.com|@cybergal.com|@cyberservices.com|@dallasmail.com|@dbzmail.com|@deleveryman.com|@diplomats.com|@disciples.com|@discofan.com|@disposable.com|@doglover.com|@doramail.com|@dr.com|@dublin.com|@dutchmail.com|@elvisfan.com|@email.com|@engineer.com|@englandmail.com|@europe.com|@europemail.com|@execs.com|@fastservice.com|@financier.com|@fireman.net|@galaxyhit.com|@gardener.com|@geologist.com|@germanymail.com|@gmx.com|@gmx.de|@graduate.org|@graphic-designer.com|@greenmail.net|@groupmail.com|@hackermail.com|@hairdresser.net|@hilarious.com|@hiphopfan.com|@homemail.com|@hot-shot.com|@housemail.com|@humanoid.net|@iname.com|@innocent.com|@inorbit.com|@instruction.com|@instructor.net|@insurer.com|@irelandmail.com|@israelmail.com|@italymail.com|@job4u.com|@jurnalist.com|@keromail.com|@kissfans.com|@kittymail.com|@koreamail.com|@legislator.com|@linuxmail.org|@lobbyist.com|@lovecat.com|@madonnafan.com|@mail-me.com|@mail.com|@marchmail.com|@metalfan.com|@mexicomail.com|@minister.com|@moscowmail.com|@munich.com|@musician.org|@muslim.com|@myself.com|@net-shopping.com|@ninfan.com|@nonpartisan.com|@null.net|@nycmail.com|@optician.com|@orthodontist.net|@pacific-ocean.com|@pacificwest.com|@pediatrician.com|@petlover.com|@photographer.net|@physicist.net|@planetmail.com|@planetmail.net|@polandmail.com|@politician.com|@post.com|@presidency.com|@priest.com|@programmer.net|@protestant.com|@publicist.com|@qualityservice.com|@radiologist.net|@raggaefan.com|@ravemail.com|@realtyagent.com|@reborn.com|@registerednurses.com|@reincarnate.com|@religious.com|@repairman.com|@representative.com|@rescueteam.com|@rocketship.com|@safrica.com|@saintly.com|@salesperson.net|@samerica.com|@sanfranmail.com|@scotlandmail.com|@secretary.net|@snakebite.com|@socialogist.com|@socialworker.net|@solution4u.com|@songwriter.com|@songwriter.net|@spainmail.com|@surgical.net|@swedenmail.com|@swissmail.com|@teachers.org|@tech-center.com|@techie.com|@techiie.com|@technologist.com|@tecnologist.com|@theplate.com|@therapist.net|@toke.com|@toothfairy.com|@torontomail.com|@tvstar.com|@umpire.com|@usa.com|@uymail.com|@webname.com|@worker.com|@workmail.com|@writeme.com" $namefiles | less >> "filter_email/gmx-family.txt"
- printf " ${GREEN}SELESAI!${NC} \n"
- printf "|-----> ${YELLOW}OTHER${NC} ..."
- grep -v -E '@onet.|@hotmail.|@live.|@outlook.|@msn.|@yahoo.|@ymail.|@rocketmail.|@aol.|@aim.|@me.|@icloud.|@mac.|@juno.|@netzero.|@optonline.|@optimum.|@att.|@ameritech.|@sbcglobal.|@bellsouth.|@flash.|@nvbell.|@pacbell.|@prodigy.|@snet.|@swbell.|@gmail|@google|@googlemail|@bigpond.|@ntlworld.|@shaw.|@cox.|@yandex.|@comcast.|@verizon.|@centurylink.|@charter.|@spectrum.|@suddenlink.|@gmx.|@aim.|@2trom.com|@accountant.com|@acdcfan.com|@activis.com|@activist.com|@adexec.com|@africamail.com|@aircraftmail.com|@allergist.com|@alumni.com|@alumnidirector.com|@angelic.com|@appraiser.net|@archaeologist.com|@arcticmail.com|@artlover.com|@asia-mail.com|@asia.com|@atheist.com|@auctioneer.net|@australiamail.com|@bartender.net|@bellair.net|@berlin.com|@bikerider.com|@birdlover.com|@blader.com|@boardermail.com|@brazilmail.com|@brew-master.com|@brew-meister.com|@bsdmail.com|@californiamail.com|@cash4u.com|@catlover.com|@cheerful.com|@chef.net|@chemist.com|@chinamail.com|@clerk.com|@clubmember.org|@collector.org|@columnist.com|@comic.com|@computer4u.com|@consultant.com|@contractor.net|@coolsite.net|@counselloer.com|@cutey.com|@cyber-wizard.com|@cyberdude.com|@cybergal.com|@cyberservices.com|@dallasmail.com|@dbzmail.com|@deleveryman.com|@diplomats.com|@disciples.com|@discofan.com|@disposable.com|@doglover.com|@doramail.com|@dr.com|@dublin.com|@dutchmail.com|@elvisfan.com|@email.com|@engineer.com|@englandmail.com|@europe.com|@europemail.com|@execs.com|@fastservice.com|@financier.com|@fireman.net|@galaxyhit.com|@gardener.com|@geologist.com|@germanymail.com|@gmx.com|@gmx.de|@graduate.org|@graphic-designer.com|@greenmail.net|@groupmail.com|@hackermail.com|@hairdresser.net|@hilarious.com|@hiphopfan.com|@homemail.com|@hot-shot.com|@housemail.com|@humanoid.net|@iname.com|@innocent.com|@inorbit.com|@instruction.com|@instructor.net|@insurer.com|@irelandmail.com|@israelmail.com|@italymail.com|@job4u.com|@jurnalist.com|@keromail.com|@kissfans.com|@kittymail.com|@koreamail.com|@legislator.com|@linuxmail.org|@lobbyist.com|@lovecat.com|@madonnafan.com|@mail-me.com|@mail.com|@marchmail.com|@metalfan.com|@mexicomail.com|@minister.com|@moscowmail.com|@munich.com|@musician.org|@muslim.com|@myself.com|@net-shopping.com|@ninfan.com|@nonpartisan.com|@null.net|@nycmail.com|@optician.com|@orthodontist.net|@pacific-ocean.com|@pacificwest.com|@pediatrician.com|@petlover.com|@photographer.net|@physicist.net|@planetmail.com|@planetmail.net|@polandmail.com|@politician.com|@post.com|@presidency.com|@priest.com|@programmer.net|@protestant.com|@publicist.com|@qualityservice.com|@radiologist.net|@raggaefan.com|@ravemail.com|@realtyagent.com|@reborn.com|@registerednurses.com|@reincarnate.com|@religious.com|@repairman.com|@representative.com|@rescueteam.com|@rocketship.com|@safrica.com|@saintly.com|@salesperson.net|@samerica.com|@sanfranmail.com|@scotlandmail.com|@secretary.net|@snakebite.com|@socialogist.com|@socialworker.net|@solution4u.com|@songwriter.com|@songwriter.net|@spainmail.com|@surgical.net|@swedenmail.com|@swissmail.com|@teachers.org|@tech-center.com|@techie.com|@techiie.com|@technologist.com|@tecnologist.com|@theplate.com|@therapist.net|@toke.com|@toothfairy.com|@torontomail.com|@tvstar.com|@umpire.com|@usa.com|@uymail.com|@webname.com|@worker.com|@workmail.com|@writeme.com' $namefiles | less >> "filter_email/other.txt"
- printf " ${GREEN}SELESAI!${NC} \n"
- printf "|-[ PINDAHKAN FILES ${YELLOW}$namefiles${NC} KE FOLDER BACKUP ]-\n"
- mv $namefiles backup
- ((hitung_files=hitung_files+1))
- done
- printf "${YELLOW}----------------------------------------------------- ${NC}\n"
- printf "${LIGHTCYAN}[INFO]${NC}${LIGHTGREEN} Pencarian emailist berdasarkan Negara\n"
- printf " |--> ${YELLOW}Other Country JP${NC} ..."
- grep '@.\+\.jp$' "filter_email/other.txt" | less >> "filter_email/mix/country-jp.txt"
- printf " ${GREEN}SELESAI!${NC} \n"
- printf " |--> ${YELLOW}Other Country DE${NC} ..."
- grep '@.\+\.de$' "filter_email/other.txt" | less >> "filter_email/mix/country-de.txt"
- printf " ${GREEN}SELESAI!${NC} \n"
- printf " |--> ${YELLOW}Other Country FR${NC} ..."
- grep '@.\+\.fr$' "filter_email/other.txt" | less >> "filter_email/mix/country-fr.txt"
- printf " ${GREEN}SELESAI!${NC} \n"
- printf " |--> ${YELLOW}Other Country CA${NC} ..."
- grep '@.\+\.ca$' "filter_email/other.txt" | less >> "filter_email/mix/country-ca.txt"
- printf " ${GREEN}SELESAI!${NC} \n"
- printf " |--> ${YELLOW}Other Country AU${NC} ..."
- grep '@.\+\.au$' "filter_email/other.txt" | less >> "filter_email/mix/country-au.txt"
- printf " ${GREEN}SELESAI!${NC} \n"
- cat "filter_email/other.txt" >> "filter_email/other.list"
- rm -rf "filter_email/other.txt"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement