annotate bin/macaddr.sh @ 741:9681a0bd74d6

add utility for slicing video files
author Jeff Hammel <k0scist@gmail.com>
date Sun, 28 Jun 2015 11:56:13 -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/'