Hallo Thomas, Marcus Roeckrath wrote: > otcp=`netstat -p --inet --numeric-hosts | grep -E "ESTABLISHED|VERBUNDEN" > | wc -l` So auch ohne wc -l: otcp=`netstat -p --inet --numeric-hosts | grep -c -E "ESTABLISHED VERBUNDEN"` -c gibt direkt die Anzahl der Zeilen aus, auf die der grep passt. -- Gruss Marcus