From 5520b5331134ef84f38215f6738d15bac9cace2f Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Wed, 26 May 2010 14:30:16 +0000 Subject: Filter trailing white space --- cron-sh/scripts/02_network.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron-sh/scripts/02_network.sh b/cron-sh/scripts/02_network.sh index c81358f..7dd5c28 100755 --- a/cron-sh/scripts/02_network.sh +++ b/cron-sh/scripts/02_network.sh @@ -30,7 +30,7 @@ if [[ ${CHECK_OPEN_PORT} == yes ]]; then else FILTER="cat" fi - netstat -pvlA inet,inet6 2> /dev/null | $FILTER > ${OPEN_PORT_TODAY}; + netstat -pvlA inet,inet6 2> /dev/null | sed -e 's/\s\s*$//g' | $FILTER > ${OPEN_PORT_TODAY}; Filter ${OPEN_PORT_TODAY} CHECK_OPEN_PORT Count ${INFOS} ${OPEN_PORT_TODAY} "Total of open network ports" fi -- cgit v1.2.1