Skip to content

Instantly share code, notes, and snippets.

@brain64bit
Created March 15, 2022 05:11
Show Gist options
  • Save brain64bit/e714e026caa0f3c9aeb5fb3fd8e3373f to your computer and use it in GitHub Desktop.
Save brain64bit/e714e026caa0f3c9aeb5fb3fd8e3373f to your computer and use it in GitHub Desktop.
Get public subnet class B of my IP
echo "$(wget --timeout=30 http://ipinfo.io/ip -qO - | cut -d"." -f1-2).0.0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment