Posted By

nmobix on 02/18/10


Tagged

ip wireless


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

cyril
thastyle


Local - IP finder (WLAN)


 / Published in: Bash
 

  1. #! /bin/bash
  2.  
  3. iface="`/sbin/iwconfig 2>&1 | grep '802.11' | cut -d" " -f1`"
  4. /sbin/ifconfig ${iface} | grep 'inet addr:' | grep -v 'inet6\|127.0.0.1' | cut -d: -f2 | cut -d" " -f1

Report this snippet  

You need to login to post a comment.