dotfiles/bin/winip

4 lines
101 B
Plaintext
Raw Normal View History

#!/bin/sh
ipconfig.exe | grep 'vEthernet (WSL)' -A4 | cut -d":" -f 2 | tail -n1 | sed -e 's/\s*//g'