Skip to content

Instantly share code, notes, and snippets.

@nitinsatish
Created January 21, 2012 06:32
Show Gist options
  • Save nitinsatish/1651708 to your computer and use it in GitHub Desktop.
Save nitinsatish/1651708 to your computer and use it in GitHub Desktop.
One liners
awk 'BEGIN { RS="}" } { for(i=1;i<=NF;i++) if ($i~"192.168") print $2,$i }' /etc/dhcpd.conf|sed 's/;//g'|sort -n -t. -k4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment