Write a bash script that finds all the
invalid email addresses.
For simplicity, assume that a vaild email addresses has the following rules-
localpart email address.
The following characters are valid in the
local part of the email as long as they are not the first character.
Domainname can only contain alphanumeric characters and
compart can have atmost one
., for e.g.
co.inis valid but
input has the following content:
email@example.com firstname.lastname@example.org abc<>@example.com abc@email@example.com
Your script should output the following:
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified. Still have a doubt? Checkout Sample Codes for more details.