ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Denis Kirienko <Denis.Kirienko@gmail.com>
To: community@lists.altlinux.org
Subject: Re: [Comm] Переконвертация имён файлов на ext3
Date: Fri, 24 Feb 2006 22:33:09 +0300
Message-ID: <dtnn1l$bam$1@sea.gmane.org> (raw)
In-Reply-To: <845072922.20060224220047@inrecolan.com>

Alexandr A. Alexandrov пишет:

>   Продолжаю возиться с Компактом 3 - и возник ещё такой вот интересный
> вопрос   (в  принципе,  не  важно,  что  Компакт  -  это  для  любого
> дистрибутива должно быть одинаково).
> 
>   На  один  из  его  дисков  скопировали  данные  из подмонтированного
> винчестера  с  ext3,  на  котором  были,  в  том  числе,  и  файлы  из
> samba-ресурса.  Они  хранились  на  диске в koi-8.
> 
>   Так вот - теперь диск унесли - и хотелось бы получить имена файлов в
> нормальном виде. То, что выдаёт ls совершенно нормально перекодируется
> в  любую  кодировку.  но  вот  что-то  я  пока  не придумаю изящного и
> простого  способа перекодировать имена файлов. Ну то есть в скрипте же
> не получается выполнить что-то типа "mv ????.doc файл.doc"...
> 
>   Как подобную вещь сделать?

Что-то не очень понятно, что сделать нужно, но, по-видимому, что-то вроде

for f in * ; do mv $f `echo $f | iconv -f KOI-8 -t UTF-8` ; done

Это если нет пробелов в именах...

--
Денис



  reply	other threads:[~2006-02-24 19:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-24 19:00 Alexandr A. Alexandrov
2006-02-24 19:33 ` Denis Kirienko [this message]
2006-02-24 19:40   ` Aleksey Fedoseev
2006-02-24 20:58     ` Re[2]: " Alexandr A. Alexandrov
2006-02-24 22:10     ` Alexandr A. Alexandrov
2006-02-25 14:15       ` Re[3]: " Alexandr A. Alexandrov
2006-02-26 12:39       ` Re[2]: " ABATAPA
2006-02-26 19:11         ` Re[4]: " Alexandr A. Alexandrov
2006-02-24 19:35 ` Alexandr A. Alexandrov
2006-02-25  9:45   ` Sergey Lizogub
2006-02-26 12:32 ` 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='dtnn1l$bam$1@sea.gmane.org' \
    --to=denis.kirienko@gmail.com \
    --cc=community@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 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