I am a... in flattering terms: Novice in scripting.
I have been playing with making a script for accessing a wireless network.
I am getting a list of the individual networks by calling:
iwlist ath0 scanning | grep ESSID | cut -d '"' -f 2
What I would like to do is to pull out the individual lines:
1: Network 1
2: Network 2
- and then having a prompt: Which network would I like to connect to, and then passing the name string to dhcpcd.
Making that work, I would like to filter the empty lines. Some of the networks report presence, but not a name. It is safe to ignore these.
Would anyone be able to help me with this? I am not sure how to split to the individual lines.