<br><br><div class="gmail_quote">On Thu, Feb 28, 2008 at 8:47 AM, Jerry Geis <<a href="mailto:geisj@pagestation.com">geisj@pagestation.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I am trying to grab the mac address for eth0 on centos 5.1 with<br>
<br>
ifconfig | grep eth0 | cut -d ' ' -f 5 and I dont get anything.<br>
<br>
What am I not doing right?<br>
<br>
ifconfig | grep eth0 | cut -d ' ' -f 1 gives me eth0 but anything else<br>
like -f 2, -f 3 etc<br>
I get nothing.<br>
<br></blockquote></div><br>ifconfig -a | awk '/eth0/ {print $5}'<br><br>should work even if eth0 is not 'UP'<br>