Skip to content

Instantly share code, notes, and snippets.

@SharkyRawr
Created May 2, 2018 16:23
Show Gist options
  • Save SharkyRawr/07c37c851a1a176191608a471e698608 to your computer and use it in GitHub Desktop.
Save SharkyRawr/07c37c851a1a176191608a471e698608 to your computer and use it in GitHub Desktop.
#! /bin/bash -e
cat /var/lib/misc/dnsmasq.leases | awk '{split($0,a," "); if (a[4] != "*") { print a[3],"\t",a[4]}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment