m.roth@xxxxxxxxx wrote: > Bowie wrote: > >> ps -C java -o thcount | awk ' { total += $1 } END { print total } ' >> > > Now, as dearly as I love awk, > ps -C java --no-heading | wc -l > You are counting processes, the original is counting threads. $ ps -C java -o thcount | awk ' { total += $1 } END { print total } ' 29 $ ps -C java --no-heading | wc -l 1 -- Bowie _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos