tag:blogger.com,1999:blog-5826231862295491795.post6550926208830430778..comments2024-03-28T22:51:37.336-07:00Comments on Linux World: script to find the mac address using linuxtuxthinkhttp://www.blogger.com/profile/11642576082677583230noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-5826231862295491795.post-782667297087881942012-12-27T07:54:14.836-08:002012-12-27T07:54:14.836-08:00Yes agree with you, did not think of that. Thank y...Yes agree with you, did not think of that. Thank you. tuxthinkhttps://www.blogger.com/profile/11642576082677583230noreply@blogger.comtag:blogger.com,1999:blog-5826231862295491795.post-51078108267592410302012-12-27T07:53:39.509-08:002012-12-27T07:53:39.509-08:00that sure is a better way, thank you.that sure is a better way, thank you.tuxthinkhttps://www.blogger.com/profile/11642576082677583230noreply@blogger.comtag:blogger.com,1999:blog-5826231862295491795.post-49835487607622475652012-12-22T12:43:24.695-08:002012-12-22T12:43:24.695-08:00... use awk or grep only as there is really no nee...... use awk or grep only as there is really no need of using both of them in this case:<br /><br /># sudo ifconfig | grep -Eo '([a-zA-Z0-9]{2}\:){5}[a-zA-Z0-9]{2}'ViruSzZhttp://d.stavrovski.netnoreply@blogger.comtag:blogger.com,1999:blog-5826231862295491795.post-67330723534211462132012-12-22T07:42:23.976-08:002012-12-22T07:42:23.976-08:00sudo /sbin/ifconfig | awk '/eth[0-9]/{ print $...sudo /sbin/ifconfig | awk '/eth[0-9]/{ print $NF}'<br />chattrnoreply@blogger.com