#!/bin/bash T1=`iwlist eth1 scan|grep ESSID` if ["$T1" != "1"];then echo $T1 fi