Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: finding symlinks without target
- X-seq: zsh-users 1251
- From: Bernd Eggink <eggink@xxxxxxxxxxxxxxxxxx>
- To: Sven Guckes <guckes@xxxxxxxxxxxxxxxxx>
- Subject: Re: finding symlinks without target
- Date: Fri, 23 Jan 1998 16:12:35 +0100
- Cc: ZShell Users <zsh-users@xxxxxxxxxxxxxxx>
- Organization: RRZ Uni Hamburg
- References: <19980123154701.05885@xxxxxxxxxxxxxxxxx>
- Sender: rz2a022@xxxxxxxxxxxxxxxxxx
Sven Guckes wrote:
>
> Hi!
>
> Problem:
> Find (and print) all symbolic links without a target within the current dirtree.
>
> Anyone hints?
Not too elegant, but it works:
for d in *(@); do cat $d >/dev/null 2>&1 || print $d; done
Bernd
--
Bernd Eggink
Regionales Rechenzentrum der Uni Hamburg
eggink@xxxxxxxxxxxxxxxxxx
http://www.rrz.uni-hamburg.de/eggink/BEggink.html
Messages sorted by:
Reverse Date,
Date,
Thread,
Author