ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Mikhail Zabaluev <mhz@alt-linux.org>
To: Mikhail Zabaluev <mandrake-russian@altlinux.ru>
Subject: Re: [mdk-re] tar-2
Date: Sun Apr 29 23:34:12 2001
Message-ID: <20010429225445.A26378@localhost.localdomain> (raw)
In-Reply-To: <194813614.20010427093115@beep.ru>; from vkarpinsky@beep.ru on Fri, Apr 27, 2001 at 09:31:15AM +0400

Hello Vladimir,

On Fri, Apr 27, 2001 at 09:31:15AM +0400, Vladimir Karpinsky wrote:
>
> Hello Mikhail,
> 
> Monday, April 16, 2001, 9:21:31 AM, you wrote:
> 
> MZ> Если нужна сортировка в архиве, можно попробовать так:
> 
> MZ> tar c $(ls -1 <опции сортировки> каталог...)
> 
> Я был так уверен, что это сработает, что даже не проверил, а вот когда
> понадобилось оказалось, что "хижина индейская". Выдает диагностику
> (почти дословно): не могу добавить в архив файл
> <идет правильное имя файла> file not found или что-то очень подобное.

Есть контакт. ls не выводит имени каталога, и работать это будет
только если перейти в корневой каталог для будущего архива. На самом
деле, если нужна алфавитная сортировка, вместо ls нужно использовать
$(echo каталог/*) - shell glob-ирует строго по алфавиту.

Если важна глобальная сортировка по всем уровням вложенности - тады
$(find <каталог> -type f | sort <опции>)

-- 
Stay tuned,
  MhZ                                     JID: mookid@jabber.org
___________
It's not Camelot, but it's not Cleveland, either.
		-- Kevin White, Mayor of Boston



      reply	other threads:[~2001-04-29 23:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-11 15:39 Vladimir Karpinsky
2001-04-16 22:46 ` Mikhail Zabaluev
2001-04-17  9:33   ` Re[2]: " Vladimir Karpinsky
2001-04-27  9:29   ` Vladimir Karpinsky
2001-04-29 23:34     ` Mikhail Zabaluev [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=20010429225445.A26378@localhost.localdomain \
    --to=mhz@alt-linux.org \
    --cc=mandrake-russian@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