From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 235 invoked from network); 23 Jan 1998 15:54:59 -0000 Received: from math.gatech.edu (root@130.207.146.50) by ns1.primenet.com.au with SMTP; 23 Jan 1998 15:54:59 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id KAA26399; Fri, 23 Jan 1998 10:11:20 -0500 (EST) Resent-Date: Fri, 23 Jan 1998 10:11:05 -0500 (EST) Sender: rz2a022@rrz.uni-hamburg.de Message-ID: <34C8B363.A9A73545@rrz.uni-hamburg.de> Date: Fri, 23 Jan 1998 16:12:35 +0100 From: Bernd Eggink Organization: RRZ Uni Hamburg X-Mailer: Mozilla 4.03 [en] (X11; I; AIX 4.1) MIME-Version: 1.0 To: Sven Guckes CC: ZShell Users Subject: Re: finding symlinks without target References: <19980123154701.05885@math.fu-berlin.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Resent-Message-ID: <"3UjJ_3.0.qR6.8CBoq"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1251 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu 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@rrz.uni-hamburg.de http://www.rrz.uni-hamburg.de/eggink/BEggink.html