Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: finding symlinks without target
- X-seq: zsh-users 1252
- From: Bruce Stephens <B.Stephens@xxxxxxxxx>
- To: ZShell Users <zsh-users@xxxxxxxxxxxxxxx>
- Subject: Re: finding symlinks without target
- Date: Fri, 23 Jan 1998 15:26:44 +0000
- In-reply-to: Your message of "Fri, 23 Jan 1998 15:47:01 +0100." <19980123154701.05885@xxxxxxxxxxxxxxxxx>
guckes@xxxxxxxxxxxxxxxxx said:
> Find (and print) all symbolic links without a target within the
> current dirtree.
For big dirtrees, this is probably a job for find. I can't see immediately
how to do it in zsh.
**/*(@) gives the list of symbolic links, and **/*(-@) gives the list of
symbolic links with targets which do exist. Clearly, from this one can
calculate the list of symbolic links which don't have existing targets, but
there ought to be an easier way of doing it.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author