dotfiles/bin/winip

4 lines
101 B
Bash
Executable File

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