Anyone know of a tool that is like "top" but for showing the number of files a process has open. I know all about lsof. But I want something along the lines of:
PID NAME OPENFILES
1234 httpd 20
5321 bash 5
...
Etc...
Something I can sort by number of files open like you can sort top by memory or cpu usage.
Anyone know of anything like this or knows how to get lsof and some grep/perl/awk filters to do something similar.