Skip to content

Instantly share code, notes, and snippets.

@deliciouskek
Created April 5, 2016 02:05
Show Gist options
  • Save deliciouskek/cb14fb2d9f20a977842929c3bb4f2396 to your computer and use it in GitHub Desktop.
Save deliciouskek/cb14fb2d9f20a977842929c3bb4f2396 to your computer and use it in GitHub Desktop.
bluetooth_scan_addresses.sh
#!\bin\sh
# bluetooth_scan_addresses.sh
timout=1
while read line
do
echo $line; hcitool name $line
done < matches.txt
@deliciouskek
Copy link
Author

Still in progress. Outputs:

00:00:00:00:00:01
00:00:00:00:00:02
00:00:00:00:00:03
Fujitsu004
00:00:00:00:00:04
Fujitsu004
00:00:00:00:00:05
Fujitsu004
00:00:00:00:00:06
Fujitsu004
00:00:00:00:00:07
...

Repeats the device name from the first found device on all other MAC addresses on the matches.txt file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment