Subject: Re: detect broken soft link
To: None <mcmahill@mtl.mit.edu>
From: David Brownlee <abs@netbsd.org>
List: netbsd-users
Date: 12/14/2000 14:01:32
shell:
if [ -h $f -a ! -f $f ] ; then
echo dangle
fi
perl: if you can readlink it and not -e the readlink value
David/absolute -- www.netbsd.org: No hype required --
On Thu, 14 Dec 2000 mcmahill@mtl.mit.edu wrote:
>
>
> is there a simple way from with in a shell (sh) script or perl to detect
> if a soft link is broken (ie, points to a file which has been removed)?
>
> Thanks
> -Dan
>
>
>