ref: 5cb4b786139c7e3ad5df18d5d7edc56634d111a0
dir: /pshot/
#!/bin/rc # pshot - see procs taking sys time, sorted ps | awk '{ nnl = 0 for(i = 1; i <= NF; i++){ if(index($4, "0:00") != 0){ nnl = 1 continue }else if(i == 1){ printf "%s ", $4 }else if(i == 4){ printf "%s ", $1 } else { printf "%s ", $i } } if(!nnl) print "" }' | sort -gr