0 Members and 1 Guest are viewing this topic.
#!/bin/bash##### showmac.sh - display mac address###export MACADDRexport IFACEif [ -z $1 ] then echo "Usage: $0 <interface>" echo " Example: $0 wlan1" exitfiIFACE=$1MACADDR=`ifconfig $IFACE | grep "HW"`echo ${MACADDR:38:18}