mirror of
https://github.com/disposable-email-domains/disposable-email-domains.git
synced 2024-12-05 06:24:39 +08:00
13 lines
395 B
Bash
Executable File
13 lines
395 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Unify locale settings temporarily to make sort produce the same order
|
|
LC_ALL=C
|
|
export LC_ALL
|
|
|
|
# Converts uppercase to lowercase, sorts, removes duplicates and removes allowlisted domains
|
|
cat disposable_email_blocklist.conf | tr '[:upper:]' '[:lower:]' | sort -f | uniq -i > temp.conf
|
|
comm -23 temp.conf allowlist.conf > disposable_email_blocklist.conf
|
|
|
|
rm temp.conf
|
|
echo "Done!"
|