dots/.bin/whoamip

3 lines
83 B
Plaintext
Raw Normal View History

2020-05-13 19:07:44 +02:00
#!/usr/bin/env bash
2021-01-09 14:28:36 +01:00
ip addr show $@ | awk '/inet / {gsub(/\/.*/,"",$2); print $2}'