How can I mask a list of e-mail addresses like:
John Doe <[email protected]>
John Doe <[email protected]>
Jane Doe <[email protected]>
... with sed (or awk) into something like:
John Doe <j******e@g***l.com>
John Doe <j*****e@h*****l.net>
Jane Doe <j***e@o*****k.org>
In other words: replace most of the e-mail address with asterisks but make it somehow recognizable by users who know the actual e-mail address.
[email protected]
is a perfectly valid email address that, when thusly encoded, would be rendered as[email protected]
...