//View Tip #259
Similar Tips
» Find function declarations in PHP or JavaScript
» Find words in garbled text
» Top ten running processes
» Remove every file but one
» Get your IP in one line


Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
You might want to get rid of the awk, sort, uniq and grep depending on how much info you need.

for dir in $(find /proc -maxdepth 1 -type d -name "*[0-9]");do ls -l $dir/fd/ | awk '{print $11}';done | sort | uniq | grep "^/var/"

View Comments »


Add your comment

Comments are currently disabled
No Comments

Home Latest Browse Top 25 Random Hall Of Fame Contact Submit