view bin/macaddr.sh @ 816:c0638ac7fb56

add hh shortcut
author Jeff Hammel <k0scist@gmail.com>
date Wed, 16 Nov 2016 11:34:13 -0800
parents 08574641d801
children
line wrap: on
line source

#!/bin/bash

INTERFACE=eth0

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