ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Ivan Fedorov <ns@altlinux.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Изменение расширения для большого количества файлов.
Date: Thu, 10 Mar 2005 20:57:17 +0800
Message-ID: <4230442D.8060801@altlinux.ru> (raw)
In-Reply-To: <4230428F.4010009@21th.com>

[-- Attachment #1: Type: text/plain, Size: 453 bytes --]

Grigory Soloviov пишет:
> Привет.
> 
> Помогите с проблемой, есть ~50 Gb mp3 и какая-то часть из этих файлов
> имеет расширение "MP3", а не "mp3" чем усложняет создание плейлиста.
> 
> Помгите со скриптом, что бы перевести расширения всех файлов в
> нормальный вид т.е. "mp3".

Вот это переведет все файлы в тек. директории в нижний регистр:

$ cat tolower.sh
#!/bin/sh
for file in `ls`; do
  mv ${file} `echo ${file} | tr '[:upper:]' '[:lower:]'`
done

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2005-03-10 12:57 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 [this message]
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   ` Re[2]: " php-coder
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=4230442D.8060801@altlinux.ru \
    --to=ns@altlinux.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