Files
dots/.bin/whoamip
2021-01-09 14:28:36 +01:00

3 lines
83 B
Bash
Executable File

#!/usr/bin/env bash
ip addr show $@ | awk '/inet / {gsub(/\/.*/,"",$2); print $2}'