ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Antonio <obidos@mail.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Re: Конвертилка
Date: Tue, 24 Sep 2002 13:10:25 +0400 (MSD)
Message-ID: <Pine.LNX.4.40.0209241303230.1352-100000@tony.localnet> (raw)
In-Reply-To: <20020924114400.25fa7ed4.All-yvg@ukr.net>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 24 Sep 2002, Yuriy Gomenyuk wrote:

> > iconv -c -f cp1251 -t koi8-r < infile > outfile
> > (infile != outfile; насчет -c -- см. --help)
>
> Работает, но как сделать чтобы конвертился изначальный файл
> - не врубился (приходится в качестве аутфайла задавать
> новый. если задать исходный файл - получатеся файл размером
> 0 байт).
>
> Как проконвентить кучу файлов в директории и всех её папках одним махом?

ИМХО, через временный файл. То есть соответствущий фрагмент
выглядит примерно так:

iconv -c -f cp1251 -t koi8-r < infile > tempfile
mv tempfile infile

P.S. Вместо iconv посоветовал бы asrecod. Тогда примерно
так:

asrecod infile > tempfile
mv tempfile infile

Если ее нет в Сизифе, ищется в момент на
http://www.freshmeat.net. Плюсы -- автоопределение входной
кодировки, не боится неизветсных символов.

- -- 
Best regards,
	Tony.			mailto:obidos@mail.ru
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9kCwF2gaLrWRbr5URAnNdAKCOej/yvB31JDsYO4J2ZC2zlxwefwCbBy/G
Dzhhe7Blf+G8WePx7t91i9c=
=Nv4t
-----END PGP SIGNATURE-----




  parent reply	other threads:[~2002-09-24  9:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-24  8:44   ` Yuriy Gomenyuk
2002-09-24  8:50     ` Leonid Sysoletin
2002-09-24  8:54       ` Yuriy Gomenyuk
2002-09-24  9:10     ` Antonio [this message]
2002-09-24  9:12       ` Michael Shigorin
2002-09-24 14:35     ` Marina Ganeva
2002-09-24 15:27       ` Alexey V. Lubimov
2002-09-24 15:34         ` Michael Shigorin
2002-09-24 16:13           ` Alexey V. Lubimov

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=Pine.LNX.4.40.0209241303230.1352-100000@tony.localnet \
    --to=obidos@mail.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