From: "Alexandr A. Alexandrov" <aaa@inrecolan.com>
To: Aleksey Fedoseev <aleksey@fedoseev.net>
Cc: ALT Linux Community <community@lists.altlinux.org>
Subject: Re[2]: [Comm] Переконвертация имён файлов на ext3
Date: Fri, 24 Feb 2006 23:58:23 +0300
Message-ID: <7410073127.20060224235823@inrecolan.com> (raw)
In-Reply-To: <43FF6112.2010006@fedoseev.net>
Доброго времени суток!
Friday, February 24, 2006, 10:40:02 PM, вы писали:
>> Что-то не очень понятно, что сделать нужно, но, по-видимому, что-то вроде
>>
>> for f in * ; do mv $f `echo $f | iconv -f KOI-8 -t UTF-8` ; done
>>
>> Это если нет пробелов в именах...
AF> Только все имена лучше брать в кавычки ("$f").
AF> Вполне рабочий способ. Единственная проблема может возникннуть с
AF> HTML-файлами, ссылающимися на какие-то локальные файлы и директории в
AF> русских буквах (например, Страница.files-директории).
Мда, везде есть некоторые проблемы. Более-менее правильная команда
выглядит, на самом деле, так:
for f in *.* ; do cp "$f" ~/tmp/"`echo "$f" | iconv -f CP1251 -t UTF8`" ; done
то есть, конечно, в кавычки надо брать не только значение переменной,
но и результат перекодировки.
convmv задействовать не получилось - но, видимо, тут какие-то
перекодировки были при копировании (копировали без меня):
подмонтировав диск, сложили в каталог кучу файлов, а сейчас я не могу
эту же кучу файлов скопировать из-за конфликта имён - и каким образом
их удалось положить все вместе в один каталог мне теперь неведомо. :-)
Ну да ладно - худо-бедно проблему решили.
--
С уважением,
Александр mailto:aaa@inrecolan.com
Девиз дня: Стоит только Чубайсу рот открыть, ему тут же насуют, будьте любезны. (Черномырдин)
next prev parent reply other threads:[~2006-02-24 20:58 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
2006-02-24 19:40 ` Aleksey Fedoseev
2006-02-24 20:58 ` Alexandr A. Alexandrov [this message]
2006-02-24 22:10 ` Re[2]: " 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=7410073127.20060224235823@inrecolan.com \
--to=aaa@inrecolan.com \
--cc=aleksey@fedoseev.net \
--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