From: Evgenii Terechkov <evg@altlinux.ru>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] Переимненование файлов. [JT]
Date: Fri, 27 Oct 2006 14:26:21 +0800
Message-ID: <m3u01qe0ky.fsf@evg.krastel.ru> (raw)
In-Reply-To: <200610270919.55810.ashen@nsrz.ru> (=?koi8-r?B?+8XOw8XXIOHM?= =?koi8-r?B?xcvTxcog98zBxMnNydLP18neJ3M=?= message of "Fri, 27 Oct 2006 09:19:49 +0400")
Шенцев Алексей Владимирович пишет:
>> > А вообще тред начался с замены пробелов на подчеркивания. Так
>> > что уже не на чем ломаться ;)
>> Здрасьте, а табы? :)
> Дык а их нет, см. начало треда ... :)
А я частенько вот таким пользуюсь:
#!/usr/bin/perl -w
use locale;
$op = shift or die "Usage: rename expr [files]\n";
chomp(@ARGV = <STDIN>) unless @ARGV;
for (@ARGV) {
$was = $_;
eval $op;
die $@ if $@;
rename($was,$_) unless $was eq $_;
}
Типа pmv 's/ /_/g' *\ * можно сказать для решения исходной задачи (табы и
т.п.: pmv 's/\s/_/g' *).
Кто скажет нелюбителю перла - какие тут подвохи могут быть?
--
С уважением, системный
администратор ООО "Крастел",
Терешков Евгений.
next prev parent reply other threads:[~2006-10-27 6:26 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-26 15:46 [Comm] Переимненование файлов Шенцев Алексей Владимирович
2006-10-26 15:54 ` Шенцев Алексей Владимирович
2006-10-26 15:59 ` Valery V. Inozemtsev
2006-10-26 16:11 ` Шенцев Алексей Владимирович
2006-10-26 16:22 ` Valery V. Inozemtsev
2006-10-26 17:42 ` Maxim Tyurin
2006-10-26 18:07 ` Sergey Vlasov
2006-10-26 18:27 ` [Comm] Переимненование файлов. [JT] Maxim Tyurin
2006-10-26 20:33 ` Michael Shigorin
2006-10-27 5:19 ` Шенцев Алексей Владимирович
2006-10-27 6:26 ` Evgenii Terechkov [this message]
2006-10-27 7:37 ` Maxim Tyurin
2006-10-27 8:03 ` Шенцев Алексей Владимирович
2006-10-27 9:03 ` Vladimir A. Svyatoshenko
2006-10-27 9:03 ` Шенцев Алексей Владимирович
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=m3u01qe0ky.fsf@evg.krastel.ru \
--to=evg@altlinux.ru \
--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