Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: finding symlinks without target



In message <19980123154701.05885@xxxxxxxxxxxxxxxxx>, Sven Guckes writes:
 >Hi!
 >
 >Problem:
 > Find (and print) all symbolic links without a target within the
 > current dirtree.

Why not implement it as a function with perl:

badsyms () {
    perl -e '{
        require "find.pl";
        sub wanted { !stat($_) && print("$name\n") }
        &find(@ARGV);
    }' $*
}

Peter Williams <peter.williams@xxxxxxxxxxxx>

------------------ SITUATION: New Account Creation -------------------
ADMINISTRATIVE FASCIST:  Puts new account policy in motd.  Since
  people without accounts cannot read the motd, nobody ever fulfills
  the bureaucratic requirements; and so, no new accounts are ever
  created.
  -- Stephan Zielinski, "KNOW YOUR UNIX SYSTEM ADMINISTRATOR"



Messages sorted by: Reverse Date, Date, Thread, Author