还是grep的问题 (为什么不匹配的行也被 grep 出来了?)

还是grep的问题 (为什么不匹配的行也被 grep 出来了?)

[B]nmap -sP 10.3.51.* | egrep -v "sendto"[/B]
结果有一段
sendto in send_ip_packet: sendto(3, packet, 40, 0, 10.3.51.234, 16) => Operation not permitted
sendto in send_ip_packet: sendto(3, packet, 40, 0, 10.3.51.233, 16) => Operation not permitted
sendto in send_ip_packet: sendto(3, packet, 40, 0, 10.3.51.232, 16) => Operation not permitted
sendto in send_ip_packet: sendto(3, packet, 40, 0, 10.3.51.231, 16) => Operation not permitted
Host 10.3.51.45 appears to be up.
MAC Address: 00:0C:6E:81:A2:B8 (Asustek Computer)
Host 10.3.51.50 appears to be up.
MAC Address: 00:07:95:0A:55:31 (Elitegroup Computer System Co. (ECS))


[B]nmap -sP 10.3.51.* | egrep  '(MAC|Host)'[/B]
结果有一段sendto in send_ip_packet: sendto(3, packet, 40, 0, 10.3.51.232, 16) => Operation not permitted
sendto in send_ip_packet: sendto(3, packet, 40, 0, 10.3.51.231, 16) => Operation not permitted
Host 10.3.51.45 appears to be up.
MAC Address: 00:0C:6E:81:A2:B8 (Asustek Computer)
Host 10.3.51.50 appears to be up.
MAC Address: 00:07:95:0A:55:31 (Elitegroup Computer System Co. (ECS))


请问,为什么?      
看不懂!能详细说明吗?      
grep后总出现不合要求的结果
是不是我的技术问题      
我把上面的内容拷贝到文本文件中,使用同样的命令,结果是正确的,没有错误!是否是nmap的输入格式有问题?      
grep的结果好像不对。。。      
还有一种可能 (卖个关子先)      
可以肯定
不是RPWT!      
有没有这种可能:
引用:
-(user@host:tty)-(tmp)-
[4028 1] % ls -l nofile
ls: nofile: No such file or directory
-(user@host:tty)-(tmp)-
[4028 1] % ls -l nofile | grep WHATSWRONG
ls: nofile: No such file or directory
-(user@host:tty)-(tmp)-
[4028 1] % ls -l nofile 2> /dev/null | grep WHATSWRONG
-(user@host:tty)-(tmp)-
[4028 1] %


      
复制内容到剪贴板
代码:
[No.163 14:18:04 ~ ]# nmap -sP 10.3.51.* | grep -v "sendto"

Starting nmap 3.81 ( [url]http://www.insecure.org/nmap/[/url] ) at 2005-11-26 14:26 CST
Host 10.3.51.0 seems to be a subnet broadcast address (returned 2 extra pings).
Host gw.linux.net (10.3.51.1) appears to be up.
MAC Address: 00:E0:FC:46:C7:00 (Huawei Technologies CO.)
Host 10.3.51.2 appears to be up.
MAC Address: 00:E0:FC:46:C7:00 (Huawei Technologies CO.)
Host 10.3.51.3 appears to be up.
MAC Address: 00:E0:FC:5B:4C:E4 (Huawei Technologies CO.)
Host 10.3.51.12 appears to be up.
MAC Address: 00:13:8F:1F:A6:DD (Unknown)
Host 10.3.51.13 appears to be up.
MAC Address: 00:F0:4C:83:B1:28 (Unknown)
Host 10.3.51.15 appears to be up.
MAC Address: 00:11:09:CD:B3:A3 (Micro-Star International)
Host 10.3.51.16 appears to be up.
MAC Address: 00:13:8F:27:6C:48 (Unknown)
Host 10.3.51.18 appears to be up.
MAC Address: 00:E0:11:01:C8:85 (Uniden SAN Diego R&D Center)
Host 10.3.51.22 appears to be up.
MAC Address: 00:50:8D:7F:81:30 (Abit Computer)
Host 10.3.51.24 appears to be up.
MAC Address: 00:E0:4C:E6:AB:8C (Realtek Semiconductor)
Host 10.3.51.30 appears to be up.
MAC Address: 00:14:2A:3F:E5:BA (Unknown)
Host 10.3.51.33 appears to be up.
MAC Address: 00:E0:4C:C8:7D:41 (Realtek Semiconductor)
Host 10.3.51.34 appears to be up.
MAC Address: 00:00:39:BC:40:A4 (Toshiba)
Host 10.3.51.35 appears to be up.
MAC Address: 00:03:0D:27:53:CF (Uniwill Computer)
Host 10.3.51.37 appears to be up.
MAC Address: 00:E0:4C:CD:7C:4F (Realtek Semiconductor)
Host huan. (10.3.51.41) appears to be up.
Host 10.3.51.61 appears to be up.
MAC Address: 00:20:ED:97:BC:55 (Giga-byte Technology CO.)
Host 10.3.51.63 appears to be up.
MAC Address: 00:13:20:82:43:4B (Unknown)
Host 10.3.51.65 appears to be up.
MAC Address: 00:0F:EA:2A:53:20 (Giga-Byte Technology Co.)
Host 10.3.51.66 appears to be up.
MAC Address: 00:E0:4C:45:0F:52 (Realtek Semiconductor)
Host 10.3.51.68 appears to be up.
MAC Address: 00:11:2F:78:BA:D5 (Asustek Computer)
Host 10.3.51.69 appears to be up.
MAC Address: 00:C0:9F:61:D5:C9 (Quanta Computer)
Host 10.3.51.255 seems to be a subnet broadcast address (returned 2 extra pings).
Nmap finished: 256 IP addresses (22 hosts up) scanned in 5.917 seconds
[No.164 14:26:28 ~ ]#
dearvoid高见
发现iptables有处笔误。。。