The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Check for proper e mail id format
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
Check for proper e mail id format
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
08-22-2007
ahmedwaseem2000
Registered User
Join Date: Aug 2005
Location: Bangalore
Posts: 206
try this:
for emailid in $(cat filename) ; do
echo $emailid | awk -FS="@" '{
if ( $1 == "" || $2 == "" || $2 !~ /\./ )
print "Invalid Id"
else
print "Valid Email Id"
}
ahmedwaseem2000
View Public Profile
Find all posts by ahmedwaseem2000