oh, if you want only the mac ether mac address, you can use that:
ifconfig | grep "ether*" | tr -d ' ' | tr -d '\t' | cut -c 6-42
(work on macintosh)
ifconfig
-- get all infogrep
-- keep the line with addresstr
-- clean allcut
-- remove the "ether" to have only the address