ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Mikhail Zabaluev <mookid@sigent.ru>
To: Mikhail Zabaluev <mandrake-russian@linuxteam.iplabs.ru>
Subject: [mdk-re] Re: [mdk-re] Re: [mdk-re] перекодировка
Date: Sat Feb 17 12:50:12 2001
Message-ID: <20010217024521.E3904@localhost.localdomain> (raw)
In-Reply-To: <305897478.20010217014350@inbox.ru>; from DIMMeach@inbox.ru on Sat, Feb 17, 2001 at 01:43:50AM +0800

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

Hello Дымыч,

On Sat, Feb 17, 2001 at 01:43 +0800, Дымыч wrote:
>
> MZ> find /ваш/каталог -type f | xargs iconv -fKOI8-R -tCP1251
> 
> MZ> Если нужно сохранение исходных файлов, можно посмотреть в мануалах iconv
> MZ> или recode на предмет backup. Или перед применением сделать копию
> MZ> каталога.
> 
> MZ> Если нужно рекурсивно перекодировать каталоги, в которых есть нетекстовые 
> MZ> файлы, или перекодировать рабочие деревья CVS, могу поделиться скриптами.
> 
> Был бы весьма обязан ;-) А то при толстом каталоге случается
> переполнение и выпад в корку :-(в лучшем случае. В худшем -
> неюзабельный каталог).

Переполнение чего случается?

Приложен скрипт, использующий file и recode. Запускать так:

recodetree <конверсия_как_в_recode> каталог... 

-- 
Stay tuned,
  MhZ                                    mailto:mookid@sigent.ru
-----------
"The porcupine with the sharpest quills gets stuck on a tree more often."

[-- Attachment #2: recodetree --]
[-- Type: text/plain, Size: 147 bytes --]

#!/bin/sh

conv=$1

shift

file $(find $@ ! \( -type d -name CVS -prune \) -type f) \
	| awk -F: '$2 ~ /text/ { print $1 }' | xargs recode "$conv"

  reply	other threads:[~2001-02-17 12:50 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   ` [mdk-re] Re: [mdk-re] перекодировка Mikhail Zabaluev
2001-02-16 20:44     ` [mdk-re] Re: [mdk-re] ÐÅÒÅËÏÄÉÒÏ×ËÁ äÙÍÙÞ
2001-02-17 12:50       ` Mikhail Zabaluev [this message]
2001-03-03 18:58         ` [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=20010217024521.E3904@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