view bin/macaddr.sh @ 771:c1f314c518c9

more characters
author Jeff Hammel <k0scist@gmail.com>
date Thu, 10 Mar 2016 13:13:14 -0800
parents 08574641d801
children
line wrap: on
line source

#!/bin/bash

INTERFACE=eth0

ifconfig ${INTERFACE} | grep 'HWaddr' | sed 's/.*HWaddr \(.*\) /\1/'