Created
January 21, 2012 06:32
-
-
Save nitinsatish/1651708 to your computer and use it in GitHub Desktop.
One liners
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
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