zsh-users
 help / color / mirror / code / Atom feed
From: Bernd Eggink <eggink@rrz.uni-hamburg.de>
To: Sven Guckes <guckes@math.fu-berlin.de>
Cc: ZShell Users <zsh-users@math.gatech.edu>
Subject: Re: finding symlinks without target
Date: Fri, 23 Jan 1998 16:12:35 +0100	[thread overview]
Message-ID: <34C8B363.A9A73545@rrz.uni-hamburg.de> (raw)
In-Reply-To: <19980123154701.05885@math.fu-berlin.de>

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


  reply	other threads:[~1998-01-23 15:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-23 14:47 Sven Guckes
1998-01-23 15:12 ` Bernd Eggink [this message]
1998-01-23 15:26 ` Bruce Stephens
1998-01-23 16:00 ` Bart Schaefer
1998-01-23 16:42   ` Bruce Stephens
1998-01-23 17:10     ` zsh manual - more examples! Sven Guckes
1998-01-23 16:47   ` finding symlinks without target Peter Williams
1998-01-23 17:51 ` Peter Williams
1998-01-23 15:34 Niall Smart
     [not found] <199801231642.IAA27762@shell10.ba.best.com>
1998-01-23 17:10 ` Bart Schaefer
1998-01-23 17:46   ` Bruce Stephens
1998-01-26  4:41 Paul Lew

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=34C8B363.A9A73545@rrz.uni-hamburg.de \
    --to=eggink@rrz.uni-hamburg.de \
    --cc=guckes@math.fu-berlin.de \
    --cc=zsh-users@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).