Artificial intelligent assistant

How to print SSID only? While I working on a script I need to print available SSID only. I tried this: sudo iwlist wlp2s0 scan | grep ESSID I got output like this: **ESSID** :"CoreFragment_5G" **ESSID** :"dlink" **ESSID** :"REDWING LABS" **ESSID** :"Hitachi" **ESSID** :"COMFAST" **ESSID** :"Yash Shah" **ESSID** :"CoreFragment" **ESSID** :"Appbirds_Technologies" **ESSID** :"20096641" **ESSID** :"REDWING LABS_5G" But I want to print name only. How to filter this command?

There are many ways to do it, using `awk`:


sudo iwlist wlp2s0 scan | grep ESSID | awk -F '"' '{print $2}'


Or using `cut`:


sudo iwlist wlp2s0 scan | grep ESSID | cut -d '"' -f2


These commands will give you the names without `"`.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 9b74f8c70b508ee3b7197f4a791a6d83