[Eisfair_dev] [e1] eisgraph 1.1.0 testing released

Marcus Roeckrath marcus.roeckrath at gmx.de
Do Jun 18 23:53:58 CEST 2015


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


Mehr Informationen über die Mailingliste Eisfair_dev