How do I get the name of the wifi network I'm connected to?
/Sy*/L*/Priv*/Apple8*/V*/C*/R*/airport -I | awk '/ SSID:/ {print $2}'

This uses the airport CLI, with the -I flag to show information and filter using awk for just the SSID shows the name of the network.