Get WiFi network name (SSID) from iwconfig


/ Published in: Bash
Save to your folder(s)

Get connected wireless network name (SSID) from iwconfig


Copy this code and paste it in your HTML
  1. #!/bin/sh
  2. AP=$(iwconfig wlan1 | grep 'ESSID:' | awk '{print $4}' | sed 's/ESSID://g' | sed 's/"//g')
  3. echo $AP

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.