Grep hcitool lescan output

Viewed 2517

How do I grep the output of 'hcitool lescan' or for that matter pipe it to anything. It seems when I pipe anything from 'hcitool lescan' I get no output.

root@edison:/mnt/rtd# hcitool lescan |grep B

^Croot@edison:/mnt/rtd# hcitool lescan | tee foo

^Croot@edison:/mnt/rtd# hcitool lescan
LE Scan ...
B0:B4:48:xx:xx:xx (unknown)
B0:B4:48:xx:xx:xx xxxxxxxx
B0:B4:48:yy:yy:yy (unknown)
B0:B4:48:yy:yy:yy yyyyyyyy
2 Answers
Related