From: Anton Kovalenko <a_kovalenko@mtu-net.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Старые файлы
Date: Thu, 03 Oct 2002 15:08:13 +0400
Message-ID: <87k7kzwzj6.fsf@lenin.doma.net> (raw)
In-Reply-To: <20021003140526.361b1744.laedel@pochtamt.ru> (Olga's message of "Thu, 3 Oct 2002 14:05:26 +0800")
>>>>> Olga writes:
> Ну а чистить можно так:
> find ОчищаемыйКаталог -name '*.bak' -exec rm {} \;
> или, чтобы каждый раз спрашивалось подтверждение,
> удалять файл или нет:
> find ОчищаемыйКаталог -name '*.bak' -ok rm {} \;
> Можно чистить old и bak сразу:
> find ОчищаемыйКаталог -name '*.[ob][la][dk]' -ok rm {} \;
Последний вариант -- не совсем то, что нужно. То есть, если найдутся
какие-нибудь *.oak, *.bad, *.blk и так далее -- они тоже будут
предложены.
find -name '*.bak' -or -name '*.old' -ok rm {} \;
--
With Best Wishes, Anton Kovalenko /* http://kovalenko.webzone.ru */
#!/usr/bin/wish - best wish I have for you!
next prev parent reply other threads:[~2002-10-03 11:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-02 11:42 Nick
2002-10-03 6:05 ` Olga
2002-10-03 11:08 ` Anton Kovalenko [this message]
2002-10-03 13:18 ` Дмитрий Зубов
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=87k7kzwzj6.fsf@lenin.doma.net \
--to=a_kovalenko@mtu-net.ru \
--cc=community@altlinux.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