1 2 3 4 5 6 7 8
#!/bin/sh # Find all email addresses in stdin, print them newline-separated to stdout reg='[a-z0-9\._\+\-%]+@[a-z0-9\._\+\-%]+\.[a-zA-Z]+' grep -Pio "$reg"
Generated with cgit - Back to sebastiano.tronto.net