From: Mikhail Zabaluev <mookid@sigent.ru>
To: Alexey <mandrake-russian@linuxteam.iplabs.ru>
Subject: [mdk-re] Re: [mdk-re] перекодировка
Date: Thu Feb 15 18:04:49 2001
Message-ID: <20010215112033.F2083@localhost.localdomain> (raw)
In-Reply-To: <517059763.20010214223454@inbox.ru>; from DIMMeach@inbox.ru on Wed, Feb 14, 2001 at 10:34:54PM +0800
Hello Дымыч,
On Wed, Feb 14, 2001 at 22:34 +0800, Дымыч wrote:
>
> Приветствую тебя, о Alexey!
>
> Дело было во среда, 14 февраля 2001 г..
> В 22:21:31 минус 8 Гринвичей залезаю в мыльницу и вижу:
>
> A> Не подскажете, чем можно пакетно файлы перекодировать (и с вложенными директориями). Что то с iconv и recode не получается, затыкаются при попадании на имя директории. В info recode ничего не
> A> нашел, может плохо смотрел.
>
> A> error while reading the input: Is a directory
>
> A> запускаю так:
> A> iconv -fKOI8-r -tCP1251 *
> A> или
> A> recode -v KOI8-RU..windows-1251 *
>
> На вскидку, что-то вроде этого:
>
> #!/bin/sh
>
> function recode() {
> fot unit in *; do
> if [ -d $unit]; then
> cd $unit
> else
> iconv -fKOI8-r -tCP1251 $unit
> fi
> }
> exec recode
find /ваш/каталог -type f | xargs iconv -fKOI8-R -tCP1251
Если нужно сохранение исходных файлов, можно посмотреть в мануалах iconv
или recode на предмет backup. Или перед применением сделать копию
каталога.
Если нужно рекурсивно перекодировать каталоги, в которых есть нетекстовые
файлы, или перекодировать рабочие деревья CVS, могу поделиться скриптами.
--
Stay tuned,
MhZ mailto:mookid@sigent.ru
-----------
This system will self-destruct in five minutes.
next prev parent reply other threads:[~2001-02-15 18:04 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-13 16:31 [mdk-re] ÐÅÒÅËÏÄÉÒÏ×ËÁ Alexey
2001-02-13 16:38 ` [mdk-re] перекодировка rider
2001-02-13 19:54 ` [mdk-re] как загрузить почту с удалённого ящика? Roman Shumikhin
2001-02-13 20:31 ` [mdk-re] ËÁË ÚÁÇÒÕÚÉÔØ ÐÏÞÔÕ Ó ÕÄÁÌ£ÎÎÏÇÏ ÑÝÉËÁ? Serge Skorokhodov
2001-02-13 20:54 ` Sergei
2001-02-13 22:31 ` Roman S
2001-02-14 17:32 ` [mdk-re] ÐÅÒÅËÏÄÉÒÏ×ËÁ äÙÍÙÞ
2001-02-15 18:04 ` Mikhail Zabaluev [this message]
2001-02-16 20:44 ` [mdk-re] " äÙÍÙÞ
2001-02-17 12:50 ` [mdk-re] Re: [mdk-re] Re: [mdk-re] перекодировка Mikhail Zabaluev
2001-03-03 18:58 ` [mdk-re] Re: [mdk-re] Re: [mdk-re] ÐÅÒÅËÏÄÉÒÏ×ËÁ äÙÍÙÞ
2001-03-05 2:09 ` [mdk-re] Re: перекодировка Mikhail Zabaluev
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=20010215112033.F2083@localhost.localdomain \
--to=mookid@sigent.ru \
--cc=mandrake-russian@linuxteam.iplabs.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