Return to Snippet

Revision: 24028
at February 18, 2010 23:52 by nmobix


Initial Code
#! /bin/bash

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

Initial URL

                                

Initial Description

                                

Initial Title
Local - IP finder (WLAN)

Initial Tags
ip

Initial Language
Bash