Last active
August 25, 2025 12:31
-
-
Save gwpl/90089c6d02ddcd019c27ffc7559163c3 to your computer and use it in GitHub Desktop.
# first ipv4 for tailscale hostname
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# first ipv4 for tailscale hostname | |
function tsipv4() { tailscale ip "$1"|grep -E '^([0-9]{1,3}\.){3}[0-9]{1,3}$' | head -n 1 ; } | |
# first ip for tailscale hostname | |
function tsip() { tailscale ip "$1"| head -n 1 ; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment