Gentoo Archives: gentoo-user-de

From: Dirk Heinrichs <dirk.heinrichs.ext@×××.com>
To: gentoo-user-de@l.g.o
Subject: Re: [gentoo-user-de] Tote Symlinks finden und löschen
Date: Tue, 24 Jul 2007 10:04:22
Message-Id: 200707241200.51906.dirk.heinrichs.ext@nsn.com
In Reply to: [gentoo-user-de] Tote Symlinks finden und löschen by Andreas Stallmann
1 Am Dienstag, 24. Juli 2007 schrieb ext Andreas Stallmann:
2
3 > Mein Backup spinnt rum, weil leider einige zu sichernde Symlinks ins
4 > Leere zeigen.
5
6 Dann würde ich das Backup-Prog wechseln :-)
7
8 > Jetzt würde ich gern diese aufspüren und allesamt löschen.
9
10 Für zsh:
11
12 # Find (and print) all symbolic links without a target within the current
13 # dirtree.
14 $ $ file **/*(D@) | fgrep broken
15 $ for i in **/*(D@); [[ -f $i || -d $i ]] || echo $i
16 $ echo **/*(@-^./=%p)
17 $ print -l **/*(-@)
18
19 Quelle: http://grml.org/zsh/zsh-lovers.html
20
21 HTH...
22
23 Dirk
24 --
25 Dirk Heinrichs | Tel: +49 (0)162 234 3408
26 Configuration Manager | Fax: +49 (0)211 47068 111
27 Capgemini Deutschland | Mail: dirk.heinrichs@×××××××××.com
28 Wanheimerstraße 68 | Web: http://www.capgemini.com
29 D-40468 Düsseldorf | ICQ#: 110037733
30 GPG Public Key C2E467BB | Keyserver: www.keyserver.net

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user-de] Tote Symlinks finden und löschen Tobias Hommel <gentoo@××××××××××××××××××××××××.de>