I am developing a bash shell script that will allow the users their email addresses. However, I would like to check if the email is valid, just the form, not the actual email. For example,
tommy@hotmail.com
is a valid email but
tommy#hotmail.com
is not... is there a way that would allow me the verify the input and prompt them for another input if it's wrong?
Thanks