Friday, 14 November 2014

iwlist helper

This script filter helpful output from iwlist.
Use it this way:

# show-wifi wlan0 VOO_HOMESPOT last

#!/bin/sh

device=${1-wlan0}
essid=${2-}
last=${3}

filter()
{
    if [ -n "$essid" ] ; then
        grep -B 3 $essid | grep -v ^--
    else
        cat
    fi
}

iwlist $device scanning $last | egrep "ESSID:|Address:|Quality=|Channel:" | filter


3 comments:

  1. Please have a look at your forum: http://forum.magiksys.net/viewtopic.php?f=3&t=285

    thx Klaus

    ReplyDelete
  2. Superb explanation & it's too clear to understand the concept as well, keep sharing admin with some updated information with right examples.Keep update more posts.

    Manpower Consultancy in Chennai

    ReplyDelete
  3. This is an awesome post.Really very informative and creative contents. These concept is a good way to enhance the knowledge.I like it and help me to development very well.Thank you for this brief explanation and very nice information.Well, got a good knowledge.
    Isoft Innovations Adyar
    Isoft Innovations Facebook

    ReplyDelete