[H-GEN] Scripting guide
Kelvin Heng
kelvinheng at hotmail.com
Thu May 25 02:35:04 EDT 2006
hi guys,
I am to write a script to retrieve the IP address from a list of log files,
and if the IP address matches the ones I need then I will take them out.
But I am facing some problem with the dot (.) between IP address. Can
someone help me with this?
testfile:
a
aa
aaa
.aa
a.a
aa.
Test 1:
$ grep -w a testfile
a
a.a
Test 2:
$ grep -w "a." testfile
aa
.aa
aa.
Test 3:
$ grep "a.a" testfile
aaa
a.a
Regards,
Kelvin Heng
Have A Nice Day!
More information about the General
mailing list