ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@osdn.org.ua>
To: Community@altlinux.ru
Subject: [Comm] Re: rm - не работает рекурсивное удаление?
Date: Thu, 15 Sep 2005 22:02:03 +0300
Message-ID: <20050915190203.GL19471@osdn.org.ua> (raw)
In-Reply-To: <200509152108.01714.dlagovna@mail.ru>

On Thu, Sep 15, 2005 at 09:08:01PM +0400, Sergey Stepanov wrote:
> Есть каталог с подкаталогами в которых лежит много (~1500) *.tga файлов.
> Нужно эти файлы удалить, не тронув подкаталоги.

rm */*.tga
find -name '*.tga' | xargs rm
(про более надёжный синтаксис find+xargs, когда заранее
неизвестно, что там за заковыристые имена могут быть --
см. http://docs.altlinux.ru/alt/devel/ch01s03.html#id2883908)

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/
 ----       visit our conference (Oct 1):
--          http://conference.osdn.org.ua


  parent reply	other threads:[~2005-09-15 19:02 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-15 17:08 [Comm] " Sergey Stepanov
2005-09-15 17:22 ` Michael Holzman
2005-09-15 17:40   ` Sergey Stepanov
2005-09-15 17:53     ` Dmitry V. Levin
2005-09-16 16:41       ` [Comm][JT] " Sergey Stepanov
2005-09-16 18:25         ` Pavel Usischev
2005-09-16 19:54         ` Vasily Kolomeets
2005-09-16 20:27         ` Alexey Rusakov
2005-09-20  9:50         ` [Comm] Administrativia Michael Shigorin
2005-09-20 10:05           ` Владимир Гусев
2005-09-15 17:53     ` [Comm] rm - не работает рекурсивное удаление? Michael Holzman
2005-09-15 19:02 ` Michael Shigorin [this message]
2005-09-16  7:44 ` ABATAPA

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=20050915190203.GL19471@osdn.org.ua \
    --to=mike@osdn.org.ua \
    --cc=Community@altlinux.ru \
    --cc=shigorin@gmail.com \
    /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