ALT Linux Community general discussions
 help / color / mirror / Atom feed
* Re: [Comm] Re: Конвертилка
  @ 2002-09-24  8:44   ` Yuriy Gomenyuk
  2002-09-24  8:50     ` Leonid Sysoletin
                       ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Yuriy Gomenyuk @ 2002-09-24  8:44 UTC (permalink / raw)
  To: community

[-- Attachment #1: Type: text/plain, Size: 466 bytes --]

On Mon, 9 Sep 2002 14:10:34 +0300
Michael Shigorin <mike@osdn.org.ua> wrote:

> iconv -c -f cp1251 -t koi8-r < infile > outfile
> (infile != outfile; насчет -c -- см. --help)

Работает, но как сделать чтобы конвертился изначальный файл - не врубился (приходится в качестве аутфайла задавать новый. если задать исходный файл - получатеся файл размером 0 байт).

Как проконвентить кучу файлов в директории и всех её папках одним махом?

-- 
С уважением,
Юрий Гоменюк.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Comm] Re: Конвертилка
  2002-09-24  8:44   ` [Comm] Re: Конвертилка Yuriy Gomenyuk
@ 2002-09-24  8:50     ` Leonid Sysoletin
  2002-09-24  8:54       ` Yuriy Gomenyuk
  2002-09-24  9:10     ` Antonio
  2002-09-24 14:35     ` Marina Ganeva
  2 siblings, 1 reply; 9+ messages in thread
From: Leonid Sysoletin @ 2002-09-24  8:50 UTC (permalink / raw)
  To: community

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

transcode

-- 
Л. Сысолетин,
webmaster@unicon-ms.ru
[Team Ёжики-рулез!]  [Team Котёнки на солярке] [Team Берегите букву "ё"!]

As of next Monday, MACLISP will no longer support list structure.
Please downgrade your programs.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Comm] Re: Конвертилка
  2002-09-24  8:50     ` Leonid Sysoletin
@ 2002-09-24  8:54       ` Yuriy Gomenyuk
  0 siblings, 0 replies; 9+ messages in thread
From: Yuriy Gomenyuk @ 2002-09-24  8:54 UTC (permalink / raw)
  To: community

[-- Attachment #1: Type: text/plain, Size: 1288 bytes --]

On Tue, 24 Sep 2002 12:50:14 +0400
Leonid Sysoletin <webmaster@unicon-ms.ru> wrote:

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


[root@localhost sbin]# apt-get install transcode
Processing File Dependencies... Done
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

Sorry, but the following packages have unmet dependencies:
  transcode: Depends: libdv.so.1 but it is not installable
E: Sorry, broken packages
[root@localhost sbin]#


-- 
С уважением,
Юрий Гоменюк.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Comm] Re: Конвертилка
  2002-09-24  8:44   ` [Comm] Re: Конвертилка Yuriy Gomenyuk
  2002-09-24  8:50     ` Leonid Sysoletin
@ 2002-09-24  9:10     ` Antonio
  2002-09-24  9:12       ` Michael Shigorin
  2002-09-24 14:35     ` Marina Ganeva
  2 siblings, 1 reply; 9+ messages in thread
From: Antonio @ 2002-09-24  9:10 UTC (permalink / raw)
  To: community

-----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-----




^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Comm] Re: Конвертилка
  2002-09-24  9:10     ` Antonio
@ 2002-09-24  9:12       ` Michael Shigorin
  0 siblings, 0 replies; 9+ messages in thread
From: Michael Shigorin @ 2002-09-24  9:12 UTC (permalink / raw)
  To: community

On Tue, Sep 24, 2002 at 01:10:25PM +0400, Antonio wrote:
> P.S. Вместо iconv посоветовал бы asrecod. Тогда примерно

в сизифе есть enca -- последняя версия автодетектит получше (хотя
случай ВСЕХ БОЛЬШИХ пока обдумывается -- отдельная тема) и умеет
украинский и белорусский

а так -- да,

find dir/ -name '*name?pattern' | while read i; do 
	tmp=`mktemp`; фильтр < "$i" > $tmp && mv $tmp "$i"
done

где "фильтр" -- по вкусу из вышеперечисленного

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Comm] Re: Конвертилка
  2002-09-24  8:44   ` [Comm] Re: Конвертилка Yuriy Gomenyuk
  2002-09-24  8:50     ` Leonid Sysoletin
  2002-09-24  9:10     ` Antonio
@ 2002-09-24 14:35     ` Marina Ganeva
  2002-09-24 15:27       ` Alexey V. Lubimov
  2 siblings, 1 reply; 9+ messages in thread
From: Marina Ganeva @ 2002-09-24 14:35 UTC (permalink / raw)
  To: community

Yuriy Gomenyuk пишет:
| Как проконвентить кучу файлов в директории и всех её папках одним махом?
|
Попробуйте rusconv (http://uucode.com/rusconv/index.html).

-- 
С уважением,
~                Марина.
------------------
mail: cron@land.ru
JID:  crond@jabber.org



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Comm] Re: Конвертилка
  2002-09-24 14:35     ` Marina Ganeva
@ 2002-09-24 15:27       ` Alexey V. Lubimov
  2002-09-24 15:34         ` Michael Shigorin
  0 siblings, 1 reply; 9+ messages in thread
From: Alexey V. Lubimov @ 2002-09-24 15:27 UTC (permalink / raw)
  To: community

On Tue, 24 Sep 2002 16:35:32 +0200
Marina Ganeva <cron@land.ru> wrote:

> Yuriy Gomenyuk пишет:
> | Как проконвентить кучу файлов в директории и всех её папках одним
> | махом?

find ./ -exec iconv -f cp1251 -t koi8-r {} ";"

man find
man iconv
man recode

-- 
С уважением, Алексей Любимов avl@cad.ru


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Comm] Re: Конвертилка
  2002-09-24 15:27       ` Alexey V. Lubimov
@ 2002-09-24 15:34         ` Michael Shigorin
  2002-09-24 16:13           ` Alexey V. Lubimov
  0 siblings, 1 reply; 9+ messages in thread
From: Michael Shigorin @ 2002-09-24 15:34 UTC (permalink / raw)
  To: community

On Tue, Sep 24, 2002 at 07:27:25PM +0400, Alexey V. Lubimov wrote:
> find ./ -exec iconv -f cp1251 -t koi8-r {} ";"

iconv не делает inplace (enca и некоторые другие -- делают)

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Comm] Re: Конвертилка
  2002-09-24 15:34         ` Michael Shigorin
@ 2002-09-24 16:13           ` Alexey V. Lubimov
  0 siblings, 0 replies; 9+ messages in thread
From: Alexey V. Lubimov @ 2002-09-24 16:13 UTC (permalink / raw)
  To: community

On Tue, 24 Sep 2002 18:34:13 +0300
Michael Shigorin <mike@osdn.org.ua> wrote:

> On Tue, Sep 24, 2002 at 07:27:25PM +0400, Alexey V. Lubimov wrote:
> > find ./ -exec iconv -f cp1251 -t koi8-r {} ";"
> 
> iconv не делает inplace (enca и некоторые другие -- делают)

потому и написал man recode :)
главное тут симбиоз find и перекодировщика, а не конкретно iconv...

-- 
С уважением, Алексей Любимов avl@cad.ru


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2002-09-24 16:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-24  8:44   ` [Comm] Re: Конвертилка Yuriy Gomenyuk
2002-09-24  8:50     ` Leonid Sysoletin
2002-09-24  8:54       ` Yuriy Gomenyuk
2002-09-24  9:10     ` Antonio
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

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