Posted By

2mf on 11/06/12


Tagged

network wlan wifi


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

craig


Get WiFi network name (SSID) from iwconfig


 / Published in: Bash
 

Get connected wireless network name (SSID) from iwconfig

  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  

You need to login to post a comment.