$DATA is a long string containing some Email addresses.
$DATA
echo "$DATA" | grep -Eo "\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,