containers-monit/whatsmyip6.sh
2021-04-01 15:49:14 -03:00

4 lines
112 B
Bash
Executable file

#!/bin/sh
ip address show ${1:-eth0} | grep inet6 | grep global | tr -s " " | cut -d " " -f 3 | cut -d / -f 1