From: php-coder <php-coder@ngs.ru>
To: community@altlinux.ru
Subject: Re[2]: [Comm] Изменение расширения для большого количества файлов.
Date: Thu, 10 Mar 2005 20:13:40 +0600
Message-ID: <6825728596.20050310201340@ngs.ru> (raw)
In-Reply-To: <4230442D.8060801@altlinux.ru>
--- Ivan Fedorov 10.03.2005 18:57:17
+++ php-coder 10.03.2005 20:07:41
IF> #!/bin/sh
IF> for file in `ls`; do
if [ "`echo $file | rev | cut -c 1-3 | rev`" = "MP3" ];
then
mv $file "`echo $file | rev | cut -c 4- | rev`.mp3"
fi
IF> done
Вот так, если не ошибся, все должно работать. Писал, правда, по
памяти и проверть не могу. Кстати, вместо ls, лучше написать ls -1
P.S. Если что -- я не виноват ;-))
--
+ php-coder
+ php-coder[at]ngs[dot]ru
+ ALT Linux Master 2.4
>Не говорите только, что KDE красивее GNOME.
Зачем говорить? Ты это и сам должен знать.
-- mikhail (linux.org.ru)
next prev parent reply other threads:[~2005-03-10 14:13 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-10 12:50 Grigory Soloviov
2005-03-10 12:57 ` Ivan Fedorov
2005-03-10 13:21 ` Grigory Soloviov
2005-03-10 13:46 ` Re[2]: " php-coder
2005-03-11 8:15 ` Grigory Soloviov
2005-03-11 8:35 ` Alexey I. Froloff
2005-03-11 3:33 ` Pyatnitskich Evgeniy
2005-03-11 8:28 ` Grigory Soloviov
2005-03-11 8:40 ` Alexey I. Froloff
2005-03-11 8:44 ` Pyatnitskich Evgeniy
2005-03-11 10:09 ` Olvin
2005-03-11 3:43 ` Pyatnitskich Evgeniy
2005-03-10 14:13 ` php-coder [this message]
2005-03-10 14:24 ` Genix
2005-03-10 12:59 ` Andrei Popov
2005-03-10 13:02 ` Olvin
2005-03-10 17:22 ` Nikolay A. Fetisov
2005-03-11 8:36 ` Grigory Soloviov
2005-03-10 14:26 ` [Comm] " Arioch
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=6825728596.20050310201340@ngs.ru \
--to=php-coder@ngs.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