I have an alias table and I need to make a global change due to a new mail server. I think I can do it with sed, but don't know how.
a sample line look like this
I need to change the format to firstinitialLASTNAME
and change the mail server like this
How can I strip the characters before the underscore and replace it with just the first initial. I know how to simply change the server name after the @ sign. that part was easy. there will be a variable length string for each first name but they will all have a space or whitespace character after the semicolon.
Thanks in advance.