From: Chris Koeritz Date: Wed, 9 Apr 2014 03:38:26 +0000 (-0400) Subject: fix to not try to choke down entire log file to find the unassigned dhcp addresses. X-Git-Tag: 2.140.90~799 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=8aa4cc2c19e208289b31a979a37ecfb7dd100403;p=feisty_meow.git fix to not try to choke down entire log file to find the unassigned dhcp addresses. --- diff --git a/scripts/system/find_dhcp_unassigned.sh b/scripts/system/find_dhcp_unassigned.sh index 0983bf20..6abc1c71 100644 --- a/scripts/system/find_dhcp_unassigned.sh +++ b/scripts/system/find_dhcp_unassigned.sh @@ -8,5 +8,5 @@ if [ ! -s "$logfile" ]; then # a simple fail over that's not guaranteed to work. logfile="/var/log/syslog" fi -grep -i "dhcp.*2[4-5][0-9]" "$logfile" | less +tail -n 500 "$logfile" | grep -i "dhcp.*2[4-5][0-9]" | less