geek rescue kit Code
Brought to you by:
ctaf
#!/bin/sh
## most for most in /ctaf/conf/bin
##
## Made by root
## Login <root@epita.fr>
##
## Started on Tue Feb 22 16:44:43 2005 root
## Last update Tue Feb 22 16:44:58 2005 root
##
if [ $# -gt 0 ]
then
nb=$1
else
nb=1
fi
ps aux | sort -rnk 3 | gawk '/:/ {print $1 ": " $11 " (pid: " $2 ")"}' | head -n $nb