From 15ea4418e0846d0875980db99db5652b1f7396d7 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Fri, 29 Sep 2017 10:13:00 +0100 Subject: [PATCH] Fix newline problem in the output file. Thanks to Steve G8ZMG. --- XLXHostsupdate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XLXHostsupdate.sh b/XLXHostsupdate.sh index d79ed2f..5b5f488 100644 --- a/XLXHostsupdate.sh +++ b/XLXHostsupdate.sh @@ -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