Here are some mangled email address:
I need to reformat order the emails to the right form like:
How can I reformate order the emails to the right form using Linux and sed command?
An email consists of three parts: username, domain name and TLDs. All these three parts are grabbed as substring and in the replacement string, they are placed in the order.
$sed 's/\(..*\)@\(..*\)\.\(..*\)/\[email protected]\3.\1/'