scripts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
scripts [2023-06-15 00:38] asdfscripts [2023-08-18 18:24] (current) – [Report signal strengths for wireless APs] asdf
Line 1: Line 1:
 ====== Useful scripts ====== ====== Useful scripts ======
 ===== Report signal strengths for wireless APs ===== ===== Report signal strengths for wireless APs =====
-Originally developed for use at [[:work:]], it's just as useful in other contexts, so I have reproduced it here.+Originally developed for use at [[:work:]], it's just as useful in other contexts, so I have reproduced it here. Requires [[gh>charmbracelet/gum]].
  
 <file bash sigstr.sh> <file bash sigstr.sh>
 #!/bin/bash #!/bin/bash
-# need some means of selecting $device+device=$(ip ad | awk '/^[0-9]+:/ { print $2 }' | sed 's/://' | gum choose)
 sudo iw $device scan |  sudo iw $device scan | 
         awk '/^BSS/ { print $2 }; /signal/ { print $2, $3, "\f" }' |         awk '/^BSS/ { print $2 }; /signal/ { print $2, $3, "\f" }' |
  • scripts.1686789530.txt.gz
  • Last modified: 2023-06-15 00:38
  • by asdf