Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Dirty script to get an ip address by hostname for an ssh server using avahi
avahi-browse _ssh._tcp -r -t | awk "c&&c--;/$HOSTNAME/{c=2}" | grep 'address'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment