Posts by mithrandir

    Hoppla...

    Code
    mith@rivendell:~$ top -n 1 -b
     22:14:38 up  7:39,  8 users,  load average: 1.10, 1.11, 1.14
    68 processes: 65 sleeping, 2 running, 0 zombie, 1 stopped
    CPU states:   3.2% user,   0.9% system,  95.5% nice,   0.5% idle
    Mem:    516048K total,   412684K used,   103364K free,    30300K buffers
    Swap:   345388K total,        0K used,   345388K free,   199776K cached
    Code
    mith@rivendell:~$ top --version
    top (procps version 2.0.7)
    mith@rivendell:~$ echo $LANG
    C

    Also machen wir doch daraus ein

    Code
    top -n 1 -b | grep "^[Cc][Pp][Uu]"

    So ist's dann letztendlich egal, solang CPU/Cpu/CpU (...) nur als erstes Wort in der Zeile steht.