Skip to content

Instantly share code, notes, and snippets.

@zuigon
Created June 28, 2010 08:32
Show Gist options
  • Save zuigon/455587 to your computer and use it in GitHub Desktop.
Save zuigon/455587 to your computer and use it in GitHub Desktop.
#!/bin/bash
grep -v ^# /etc/dhcp3/dhcpd.conf | grep -a2 host | egrep -v "hardware|\}|rndc-key" | awk '{print $2}' | sed '$!N;s/\n/ /' | column -t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment