dots/.bin/whoamip

6 lines
112 B
Plaintext
Raw Permalink Normal View History

2020-05-13 19:07:44 +02:00
#!/usr/bin/env bash
2022-05-11 12:25:43 +02:00
# Get local IP
ip addr show $@ | awk '/inet / {gsub(/\/.*/,"",$2); print $2}' | tail -n 1