求grep的一个用法
这个是我执行iwlist wlan0 scanning的结果,有多项信息,请问各位大侠如何进一步提取出红色的部分呢?最好还能加上一些符号隔开
wlan0 Scan completed :
Cell 01 - Address: 00:BD:00:00:31:BB
ESSID:"elephant"
Protocol:IEEE 802.11bgn
Mode:Master
Frequency:2.412 GHz (Channel 1)
Encryption key:on
Bit Rates:150 Mb/s
Extra:wpa_ie=dd180050f20101000050f20401000050f20401000050f2020000
IE: WPA Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
Extra:rsn_ie=30140100000fac040100000fac040100000fac020000
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
Quality=100/100 Signal level=56/100
Cell 02 - Address: 20:DC:E6:B3:05:A6
ESSID:"OfficeS"
Protocol:IEEE 802.11bgn
Mode:Master
Frequency:2.437 GHz (Channel 6)
Encryption key:on
Bit Rates:150 Mb/s
Extra:wpa_ie=dd1a0050f20101000050f20202000050f2040050f20201000050f202
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
Extra:rsn_ie=30180100000fac020200000fac04000fac020100000fac020000
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
IE: Unknown: DD7D0050F204104A0001101044000102103B000103104700100000000000001000000020DCE6B305A6102100074D657263757279102300064D573135305210240003312E3010420003312E301054000800060050F204000110110018576972656C657373204E20526F75746572204D5731353052100800020086103C000101
Quality=48/100 Signal level=87/100