dots/.bin/whoamip

3 lines
87 B
Bash
Executable File

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