We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 327a668 commit 3b881a7Copy full SHA for 3b881a7
lgsm/functions/info_messages.sh
@@ -773,7 +773,7 @@ fn_port() {
773
portname="${1}"
774
porttype="${2}"
775
portprotocol="${3}"
776
- echo -e "${portname}\t${!porttype}\t${portprotocol}\t$(echo "${ssinfo}" | grep ${portprotocol} | grep ${!porttype} | wc -l)"
+ echo -e "${portname}\t${!porttype}\t${portprotocol}\t$(echo "${ssinfo}" | grep "${portprotocol}" | grep -c "${!porttype}")"
777
fi
778
}
779
0 commit comments