Article 56DZ2 grep: Am I losing the plot?

grep: Am I losing the plot?

by
business_kid
from LinuxQuestions.org on (#56DZ2)
This is typical output from 'sudo iwlist wlan0 scan'

Code:wlan0 Scan completed :
Cell 01 - Address: 90:5C:44:AC:70:A6
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=50/70 Signal level=-60 dBm
Encryption key:on
ESSID:"VM3BE77B4"It's clear that each entry has a Channel entry, and a Quality. I've been checking things because I have a very slow wifi issue. Mow here's my problem - these checks were within a minute of each other
Code:pi@raspberrypi:~ $ sudo iwlist wlan0 scan |grep -c Channel
14
pi@raspberrypi:~ $ sudo iwlist wlan0 scan |grep -c Quality
9
pi@raspberrypi:~ $ sudo iwlist wlan0 scan |grep -A2 Channel
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=48/70 Signal level=-62 dBm
Encryption key:on
--
Channel:9
Frequency:2.452 GHz (Channel 9)
Quality=57/70 Signal level=-53 dBm
Encryption key:on
--
Channel:9
Frequency:2.452 GHz (Channel 9)
Quality=58/70 Signal level=-52 dBm
Encryption key:on
--
Channel:44
Frequency:5.22 GHz (Channel 44)
Quality=55/70 Signal level=-55 dBm
Encryption key:on
--
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=68/70 Signal level=-42 dBm
Encryption key:on
--
Channel:36
Frequency:5.18 GHz (Channel 36)
Quality=48/70 Signal level=-62 dBm
Encryption key:on
--
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=47/70 Signal level=-63 dBm
Encryption key:on
--
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=43/70 Signal level=-67 dBm
Encryption key:ongrep is seeing 14 Channel results, only 9 Quality results, and only 8 results on Channel when I ask for the next 2 lines :confused: :banghead:latest?d=yIl2AUoC8zA latest?i=PwKYS9h6wyg:P6kVZqwLry0:F7zBnMy latest?i=PwKYS9h6wyg:P6kVZqwLry0:V_sGLiP latest?d=qj6IDK7rITs latest?i=PwKYS9h6wyg:P6kVZqwLry0:gIN9vFwPwKYS9h6wyg
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments