Delete all directories that are empty

find . -empty -type d -delete

Filter only email addresses from file

grep -EiEio '\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b' <filename>