/ Published in: Bash
![](/img/icon_sav.png?v3)
Get connected wireless network name (SSID) from iwconfig
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#!/bin/sh AP=$(iwconfig wlan1 | grep 'ESSID:' | awk '{print $4}' | sed 's/ESSID://g' | sed 's/"//g') echo $AP
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)