Hi i have a file that consists of virtual domain email aliases. I need to have entries in this file be formatted like:
user1@virtualdomain.com <single tab> localuser<@appended_domain.com>
the problem is the current file consists or multiple tabs between the virtauldomain part and the localuser part and sometimes its just a random number of spaces not a tab. The other problem is the localuser part sometimes has domains appended to it and i would like those to stay but append a default domain to the localuser's that don't have a @something after it already. I imagine you can do this with awk and sed in a bash script but my skills with those commands are that good.
I appreciate any help.
thanks, paul
user1@virtualdomain.com <single tab> localuser<@appended_domain.com>
the problem is the current file consists or multiple tabs between the virtauldomain part and the localuser part and sometimes its just a random number of spaces not a tab. The other problem is the localuser part sometimes has domains appended to it and i would like those to stay but append a default domain to the localuser's that don't have a @something after it already. I imagine you can do this with awk and sed in a bash script but my skills with those commands are that good.
I appreciate any help.
thanks, paul