Report comment

“Hi Patrick. It looks like a text conversion issue, the apostrophise are the wrong character in the first SED. Also the comma is missing in ORS',' command so multiple ssid won't get separated as that is being used as the delimiter in the line IFS=","
I have done an image of my terminal nano screen to show the difference and how the script works
http://www.raspberryconnect.com/images/awk.png

Depending on the browser/text editor your using the formats can get converted. Especially if you do this in Windows. Just over type them in nano on the PI and it should work.

If you are still having issues can you email me your autohotspot script and I will run it through my pi.

My PI also shows the script with green | and blue SED, to date it works fine for me with two ssids in wpa_supplicant, of which one has spaces in the name.

Just to clarify the quotes are as follows S = single D = double
start to first |
S D S
Between first and second |
S S S S S S
Between 2nd and third |
S D S S S
After third |
S S”