ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Kostarev Alexey <kaf@nevod.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] Конвертирование имен файлов koi8r/utf8
Date: Tue, 27 Nov 2007 14:58:20 +0500
Message-ID: <474BEA3C.5000408@nevod.ru> (raw)
In-Reply-To: <474BE6C1.6060506@soc.adm.yar.ru>

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

Дворников М.В. wrote:

>Отдельный раздел - /home, /home/film - каталог с русскими названиями.
>Был установлен ALTLinux 2.4 с кодировкой koi8r,
>потом поставил другой дистрибутив с utf8.
>
>#ls -la /home/film | iconv -f KOI8-R -t UTF8
>нормально выводит русские названия.
>
>Для тренировки скопировал пару файлов в другой каталог
>и iconv уже перестал показывать русские названия (не перекодирует).
>С чем связано не знаю.
>
>#!/bin/sh
>
>for fileold in `ls -1`
>do
>   filenew=iconv -f KOI8-R -t UTF8 < $fileold
>  
>
filenew=`echo $fileold | iconv -f KOI8-R -t UTF8`

>   echo $fileold:$filenew
>done
>
>Не работает и iconv пытается файлы перекодировать, а не переменную.
>  
>
Вообще-то есть специальная программа дял этого - товарищи подскажут:-)

-- 
С Уважением
Директор ООО НЕВОД
Костарев А.Ф.


[-- Attachment #2: kaf.vcf --]
[-- Type: text/x-vcard, Size: 202 bytes --]

begin:vcard
fn:Alexey Kostarev
n:Kostarev;Alexey
org:Nevod Ltd.
adr:;;;Perm;;;Russia
email;internet:kaf@nevod.ru
tel;work:(3422) 196-960 
url:http://www.nevod.ru/nevod/staff/kaf/
version:2.1
end:vcard


  parent reply	other threads:[~2007-11-27  9:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-27  9:43 "Дворников М.В."
2007-11-27  9:51 ` ledest
2007-11-27  9:55 ` Michael Shigorin
2007-11-27  9:58 ` Kostarev Alexey [this message]
2007-11-27  9:56   ` ABATAPA

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=474BEA3C.5000408@nevod.ru \
    --to=kaf@nevod.ru \
    --cc=sysadmins@lists.altlinux.org \
    /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 sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git