Monday, October 12, 2009

Filter out an email address from a pipe

tel blenkinsop | grep -o "[[:alnum:][:graph:]]*@[[:alnum:][:graph:]]*"

Where tel is a simple address book script, in this case I just want the email address and not the whole address

Labels:

0 Comments:

Post a Comment

<< Home