文本文件:
auto lo eth0 eth0.2 eth0.3
iface lo inet loopback
iface eth0 inet dhcp
iface eth0.2 inet static
address 192.168.67.1
network 192.168.67.0
netmask 255.255.255.0
broadcast 192.168.67.255
iface eth0.3 inet static
address 192.168.68.1
network 192.168.68.0
netmask 255.255.255.0
broadcast 192.168.68.255
Extarct only eth0 word only not eth0.2 or eth0.3 Desired:eth0 word, its line number