0

There's a textfile containing a list of bssid/name of devices. Why doesn't the following line work? It just outputs nothing.

curl --silent https://gitlab.com/wireshark/wireshark/raw/master/manuf | grep c4:71:54

kirqe
  • 2,431
  • 4
  • 37
  • 63

2 Answers2

1

If you want grep to be case insensitive, you need to specify the -i flag:

$ curl --silent https://gitlab.com/wireshark/wireshark/raw/master/manuf | grep -i 'c4:71:54'
C4:71:54        Tp-LinkT        Tp-Link Technologies Co.,Ltd.
Paolo
  • 21,270
  • 6
  • 38
  • 69
0

You did not provide the correct pattern to the grep command. It is case-sensitive unless you use "grep -i ...". I believe the list of bssid/names of devices are in Upper-case. Therefore, the correct command is:

curl --silent https://gitlab.com/wireshark/wireshark/raw/master/manuf | grep C4:71:54

or, to ignore case-sensitivity within grep:

curl --silent https://gitlab.com/wireshark/wireshark/raw/master/manuf | grep -i c4:71:54
LeadingEdger
  • 604
  • 4
  • 7