From: "\"Werstak\"" <Werstak@NewMail.Ru>
To: Grigory Tuboltsev <community@altlinux.ru>
Subject: Re[2]: [Comm] English in X System/KDE with right Russian file names
Date: Thu, 31 Jul 2003 02:16:07 +0400
Message-ID: <1767890900.20030731021607@NewMail.Ru> (raw)
In-Reply-To: <20030730172255.17AB8E31CF@master.altlinux.ru>
Hi Grigory,
Wednesday, July 30, 2003, 9:20:47 PM, you wrote:
GT> А скриптиком не поделитесь, который это делает ? Заранее спасибо.
Например такой:
#!/bin/sh
find $1 -name '*' -print -depth |
while read N; do
BNN=`basename "$N"`
BNNC=`echo "$BNN" | iconv -f CP866 -t KOI8R - `
if [ "$BNN" != "$BNNC" ] ; then
NM=`dirname "${N}"`/"$BNNC"
mv "$N" "$NM" ;
fi ;
done
Корректно работает с именами содержащие пробел(ы).
Кодировки для iconv подправить под себя.
Использовать:
имя_скрипта каталог_где_хотим_переконвертить_имена_файлов_или_каталогов
>> find + iconv + mv
>> Я так "автоматически" перекодировал из cp1251 в koi8
next prev parent reply other threads:[~2003-07-30 22:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-30 16:00 Artyom
2003-07-30 16:10 ` Alexej Kryukov
2003-07-30 17:18 ` Maxim Tyurin
2003-07-30 17:20 ` Grigory Tuboltsev
2003-07-30 22:16 ` "Werstak" [this message]
2003-07-30 19:02 ` Ivan Adzhubey
2003-07-30 19:40 ` Alexej Kryukov
2003-07-30 20:01 ` Ivan Adzhubey
2003-07-30 20:34 ` Alexej Kryukov
2003-07-30 20:42 ` Ivan Adzhubey
2003-07-30 21:07 ` Alexej Kryukov
2003-07-30 16:28 ` [Comm] " Michael Shigorin
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=1767890900.20030731021607@NewMail.Ru \
--to=werstak@newmail.ru \
--cc=community@altlinux.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