4 lines
100 B
Bash
Executable File
4 lines
100 B
Bash
Executable File
#!/bin/bash
|
|
ip=$(ip a show wlan0 | sed -n 's/inet \([0-9.]*\..*\)\/.*/\1 /p' | tr -d ' ')
|
|
echo $ip
|