Index: /scripts/usr/local/lib/7dtd/commands/instances.sh
===================================================================
--- /scripts/usr/local/lib/7dtd/commands/instances.sh	(revision 89)
+++ /scripts/usr/local/lib/7dtd/commands/instances.sh	(revision 90)
@@ -9,6 +9,5 @@
 		if [ $(isRunning $I) -eq 1 ]; then
 			run="yes"
-			tel=$(telnetCommand $I lp)
-			cur=`echo $tel | sed "s/\r/\n/g" | sed "s/^ //g" | grep "Total of " | cut -d\  -f 3`
+			cur=$(telnetCommand $I lp | grep -E "^\s?Total of " | cut -d\  -f 3)
 		else
 			run="no"
Index: /scripts/usr/local/lib/7dtd/commands/status.sh
===================================================================
--- /scripts/usr/local/lib/7dtd/commands/status.sh	(revision 89)
+++ /scripts/usr/local/lib/7dtd/commands/status.sh	(revision 90)
@@ -20,6 +20,5 @@
 		echo "Open ports:"
 		netstat -nlp | grep $(getInstancePID $1) | sed -r 's/^([^ ]*)\s+.*[^ :]*:([^ ]*).*[^ :]*:[^ ]*.*/    \2 (\1)/g' | sort
-		tel=$(telnetCommand $1 lp)
-		cur=`echo $tel | sed "s/\r/\n/g" | sed "s/^ //g" | grep "Total of " | cut -d\  -f 3`
+		cur=$(telnetCommand $1 lp | grep -E "^\s?Total of " | cut -d\  -f 3)
 		echo "Players: $cur"
 	else
