Monday, October 08, 2007
Awk the output of top to sort by memory
top -c -n1 -b|grep cmssgm|awk '{for (i=5; i<=NF; i++) {printf("%s ", $i)}printf("\n")}'|sort -n -r
Subscribe to:
Comments (Atom)
Useful unix/grid commands that I use a lot but somehow forget.