#!/bin/bash
if [ ! -w $2 ] ; then exit 1 ; fi
iwlist $1 scan | grep "ESSID" >> $2
