in reply to Unix Administration: Finding symbolic links with perl and *nix
#!/usr/bin/perl -w use File::Find; find(\&wanted, shift || '.'); sub wanted { -l and not -e and print "bogus link: $File::Find::name\n"; }
-- Frag.
--
"Just remember what ol' Jack Burton does when the earth quakes, the poison arrows fall from the sky, and the pillars of Heaven shake. Yeah, Jack Burton just looks that big old storm right in the eye and says, "Give me your best shot. I can take it."
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Unix Administration: Finding symbolic links with perl and *nix
by mattr (Curate) on Nov 15, 2001 at 12:31 UTC |