Report comment

wpassid=$(awk '/ssid="/{ print $0 }' /etc/wpa_supplicant/wpa_supplicant.conf | awk -F'ssid=' '{ print $2 }' ORS=' ' | sed 's/\"/’’/g' | sed 's/ $//')

According to what I am seeing there are two places a double quote is used. After the first /ssid= and once in the first sed as you pointed out. This causes a mismatch in the quotation marks, and the first sed is then part of a statement instead of a command.

If I plug that command line into python IDLE than it reads as I think it should, but in the terminal window, it reads different