[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bash script for wireless [SOLVED]



On Fri, 2006-01-06 at 00:59 +1100, John O'Hagan wrote:
On Wed, 4 Jan 2006 02:26 am, Johannes Zarl wrote:
In the end I used gawk with ":" as a field 
separator to extract them:

	networks=$(iwlist eth1 scan  | grep ESSID | gawk -F: '{ print $2 }')

This can be optimised to -

networks=$(iwlist eth1 scan  | gawk -F: '/ESSID/ { print $2 }')


Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: