Obtaining an elapsed-time sorted list of Unix processes from a shell
CSH,
Unix,
Bash,
KSH,
Unix shells
I would like to obtain a sorted list of processes, sorted by elapsed time. I am aware of ps -o etime etc, but how exactly do i sort by a field with format [[dd]:[hh]]mm:ss ? Or is there a different way altogether to ask the OS to return a sorted list of processes, sorted by elapsed time?
Thanks.