From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 119 invoked from network); 23 Jan 1998 15:43:31 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 23 Jan 1998 15:43:31 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id KAA27260; Fri, 23 Jan 1998 10:26:10 -0500 (EST) Resent-Date: Fri, 23 Jan 1998 10:25:40 -0500 (EST) Message-Id: <199801231525.KAA27184@math.gatech.edu> X-Mailer: exmh version 2.0zeta 7/24/97 To: ZShell Users Subject: Re: finding symlinks without target In-reply-to: Your message of "Fri, 23 Jan 1998 15:47:01 +0100." <19980123154701.05885@math.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 23 Jan 1998 15:26:44 +0000 From: Bruce Stephens Resent-Message-ID: <"S7nIR2.0.xe6.pPBoq"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1252 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu guckes@math.fu-berlin.de 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.