Fix newline problem in the output file. Thanks to Steve G8ZMG.

This commit is contained in:
Jonathan Naylor
2017-09-29 10:13:00 +01:00
parent 233cb78ad1
commit 15ea4418e0

View File

@@ -94,7 +94,7 @@ BEGIN {
reflector=4001
if ($1 == "XLX950")
reflector=4005
printf "%s;%s;%d\n", substr($1,4), $2, reflector
printf "%s;%s;%d\n", substr($1,4), substr($2,1,length($2)-1), reflector
}' > ${XLXHOSTS}
exit 0