Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: finding symlinks without target
- X-seq: zsh-users 1268
- From: Peter Williams <williams@xxxxxxxxxxxxxxxxxxxxxxxx>
- To: ZShell Users <zsh-users@xxxxxxxxxxxxxxx>
- Subject: Re: finding symlinks without target
- Date: Fri, 23 Jan 1998 09:51:58 -0800
- In-reply-to: Your message of "Fri, 23 Jan 1998 15:47:01 +0100." <19980123154701.05885@xxxxxxxxxxxxxxxxx>
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