try:
Ввод:
Matches: list:"<alumni.lists.org>"
Do this: Apply label "MailingLists" edit delete
Matches: list:"w3.domain.org"
Do this: Skip Inbox, Apply label "MailingLists" edit delete
Команда:
sed 's/.*"\([^"]*\)".*/\1/;s/<\([^>]*\)>/\1/' file
Выход:
alumni.lists.org
MailingLists
w3.domain.org
MailingLists
РЕДАКТИРОВАНИЕ:
sed 's/.*"\([^"]*\)".*/\1/;s/<\([^>]*\)>/\1/' file | egrep "\.[a-z]{1,3}$"
Вывод:
alumni.lists.org
w3.domain.org
HTH Крис