Skip to content
Snippets Groups Projects
Verified Commit f844e86b authored by David Beniamine's avatar David Beniamine
Browse files

Fix duplicate lines

parent 065757d1
No related branches found
No related tags found
No related merge requests found
......@@ -43,9 +43,9 @@ do
if [ $(echo "$line" | egrep -c "^([0-9a-f]{2}:?){6} .*$") -eq 1 ]
then
date=$(date +%Y%m%d)
res=$(grep "$line" $conf_file)
rIP=$(echo $line | cut -d ' ' -f 3)
line=$(echo $line | cut -d ' ' -f 1-2)
res=$(grep "$line" $conf_file)
if [ ! -z "$res" ]
then
# Update
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment