From 8aa4cc2c19e208289b31a979a37ecfb7dd100403 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Tue, 8 Apr 2014 23:38:26 -0400 Subject: [PATCH] fix to not try to choke down entire log file to find the unassigned dhcp addresses. --- scripts/system/find_dhcp_unassigned.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.34.1