Date: 13-09-00 18:09
That's pretty cool...
You might want to add "-o -type l" to your find command too so that you catch things like /usr/local/bin/ssh which is a symlink...
I don't know if this if more efficient or not, but it avoids the loop... but then you're sorting a potentially humongous file... anyone know which is better?
( pkg_info -aL | grep "^/usr/local/" ; find /usr/local/ -type f -o -type l ) | sort | uniq -u