Skip to content

Instantly share code, notes, and snippets.

@mikerr
Last active December 22, 2015 00:19
Show Gist options
  • Save mikerr/6388223 to your computer and use it in GitHub Desktop.
Save mikerr/6388223 to your computer and use it in GitHub Desktop.
Wifi signal strength - just show percentage
a=$(/sbin/iwconfig wlan0 | awk '/Link Quality/ {print $2}' | sed 's/.*\=//');
echo $(($((${a%/*} * 100)) / ${a#*/}))%;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment