trovare link corrotti

#! /bin/bash

checkdir="/home/you/workingdir"
find $checkdir -maxdepth 5 -iname '*' -type l | while read file; do
res=`file "$file" | grep ": broken"`
if [ -n "$res" ]
then
# what you want
break # if you want to break cycle
fi
done;