linuxMaestro
Instructor
# awk '/([a-Z][0-9])*\@([a-Z][0-9])\.[a-z][a-z][a-z]?/' filename
awk: cmd. line:1: fatal: Invalid range end: /[a-Z]*\@[a-Z]\.[a-z][a-z][a-z]?/
I am trying to get email addresses from file filename, what am I doing wrong?
I have
([a-Z][0-9])* Match any number of letters or numbers
\@ Before an @
([a-Z][0-9])* then Match any number of letters or numbers
\. Before a .
[a-z][a-z][a-z]? then match either 2 or 3 characters
Why won't it work?
awk: cmd. line:1: fatal: Invalid range end: /[a-Z]*\@[a-Z]\.[a-z][a-z][a-z]?/
I am trying to get email addresses from file filename, what am I doing wrong?
I have
([a-Z][0-9])* Match any number of letters or numbers
\@ Before an @
([a-Z][0-9])* then Match any number of letters or numbers
\. Before a .
[a-z][a-z][a-z]? then match either 2 or 3 characters
Why won't it work?