for interfacefile in `ls /etc/sysconfig/network-scripts/ifcfg-eth*`
I have following for loop in my shell script. now
ls /etc/sysconfig/network-scripts/ifcfg-eth*
/etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth1
/etc/sysconfig/network-scripts/ifcfg-eth0.0 /etc/sysconfig/network-scripts/ifcfg-eth1:1
the problem is I want to grep only normal Ethernets... not like ifcfg-eth0.0 and ifcfg-eth1:1
this type of comma as well as DOT separated strings.
ls.