From: cornet <cornet@zmail.ru>
To: mandrake-russian@linuxteam.iplabs.ru
Subject: [mdk-re] Re: [mdk-re] Удаление битых ссылок
Date: Fri Feb 9 15:29:11 2001
Message-ID: <3A83E2DA.641785F4@zmail.ru> (raw)
In-Reply-To: <OFDFEEFB10.AB0A1AC1-ONC62569EE.0033D311@novosoft.ru>
denf@novosoft.ru wrote:
>
> 02/09/2001 03:01:30 PM mandrake-russian-admin wrote:
> >Hello!!
> >
> >Волею судеб, на сервере в одном каталоге и его подкаталогах образуется
> >большое количество битых символических ссылок (то есть указывающих на
> >уже не_существующие файлы). Этих ссылок много и чистить их руками сильно
> >ломает. Может подскажет кто простой способ автоматизации этого дела?
> >Хотелось бы залудить на cron скриптик, который лез бы в вышеозначеный
> >каталог и рекурсивно долбал бы все эти битые ссылки.
>
> что-нибудь типа
> if [ -L $file ] && [ ! -f $file ]; then
> rm -f $file
> fi
> ну и все это в цикле пустить с помощью find
Работает, но действительно боится имен с пробелами....
Спасибо :-))
--
******** FIRE & STEEL ********
prev parent reply other threads:[~2001-02-09 15:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-09 12:25 denf
2001-02-09 14:16 ` [mdk-re] " Dmitry V. Levin
2001-02-09 15:36 ` cornet
2001-02-09 15:58 ` cornet
2001-02-09 16:33 ` cornet
2001-02-10 4:18 ` Dmitry V. Levin
2001-02-12 12:14 ` cornet
2001-02-09 15:29 ` cornet [this message]
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=3A83E2DA.641785F4@zmail.ru \
--to=cornet@zmail.ru \
--cc=mandrake-russian@linuxteam.iplabs.ru \
/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
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git