I have a variable called $EMAIL in my script which contains an email address in the following format:
"Billy Bob" <123456789@server.company.com>
mailx doesn't like the spaces in the email address. The email will still get to the person, but I receive errors. I want to truncate the variable $EMAIL so that it contains the value:
123456789@server.company.com
I am new to unix scripting and have struggled finding a way to do this. How can this be done?
"Billy Bob" <123456789@server.company.com>
mailx doesn't like the spaces in the email address. The email will still get to the person, but I receive errors. I want to truncate the variable $EMAIL so that it contains the value:
123456789@server.company.com
I am new to unix scripting and have struggled finding a way to do this. How can this be done?