This script requires the expect
command to be installed on your system. If you are using Ubuntu for example; install it using sudo apt install expect
.
Simply put the two files check
and filter
somewhere on your server and ensure they are executable by running:
chmod +x check
chmod +x filter
./filter input.txt output.txt
-
The file
input.txt
should contain emails to check (one email per line). -
The valid emails will be added to the
output.txt
file.