Files

3 lines
100 B
Bash

#!/bin/bash
ip a | grep -hoe '\([0-9A-Fa-f]\{2\}:\)\{5\}\([0-9A-Fa-f]\{2\}\)' | head -n3 | tail -n1