#!/bin/sh # emails - output all email addresses # Good enough grep -P -o '([\w+%\-].?)+@[A-Za-z\d\-]+(\.[A-Za-z]+)*\.[A-Za-z]+'