annotate bin/macaddr.sh @ 842:03f9657514e9

while we might not want Octave *that* much, we will never want OCAML
author Jeff Hammel <k0scist@gmail.com>
date Sun, 09 Jul 2017 15:01:16 -0700
parents 08574641d801
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
628
08574641d801 STUB: bin/macaddr.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
1 #!/bin/bash
08574641d801 STUB: bin/macaddr.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
2
08574641d801 STUB: bin/macaddr.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
3 INTERFACE=eth0
08574641d801 STUB: bin/macaddr.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
4
08574641d801 STUB: bin/macaddr.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
5 ifconfig ${INTERFACE} | grep 'HWaddr' | sed 's/.*HWaddr \(.*\) /\1/'