Signal strength in Linux

I can read the signal level from the iwconfig command, but how can I accept a signal power value of only 1.94 dBm. I run my command like this, where I only need bold values ​​that need to be printed or written to another file so that I can compare RSSI.

root@dibya-notebook :~# iwconfig wlan0 | grep Signal Link Quality=59/70 Signal level=**-51** dBm root@dibya-notebook :~# iwconfig wlan0 | grep dBm Bit Rate=54 Mb/s Tx-Power=16 dBm Link Quality=62/70 Signal level=**-48** dBm 
+4
source share
1 answer
 iwconfig | awk -F'[ =]+' '/Signal level/ {print $7}' 
0
source

All Articles