Trovare Link Corrotti

Awk In One Line Laurea Gelmini

#! /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;

Tags: linux bash