Usar find para detectar enlaces simbólicos rotos

Posted on Thu 20 November 2008 in Sistemas

for f in $(find /usr/local/bin -type l); do if [ ! -e "$f" ]; then echo $f; fi; done