From: Daniel Iliev <daniel.iliev@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Renaming tons of files
Date: Wed, 27 Feb 2008 17:30:34 +0200 [thread overview]
Message-ID: <20080227173034.1db8e0e2@ilievnet.com> (raw)
In-Reply-To: <8e6453010802270712y44a05a9cw2be22a9c8262f2a0@mail.gmail.com>
On Wed, 27 Feb 2008 16:12:41 +0100
"Amar Cosic" <amar.cosic@gmail.com> wrote:
> Hello
>
> I have issue where I have something.TXT something.PDF and I need to
> rename them to something.txt something.pdf (so with lower cases) . Is
> there any easy way to do this (command,script? )
>
> Thanks
>
Use at your own risk. Make a backup before try.
1)
rename ".PDF" ".pdf" *.PDF
rename ".TXT" ".txt" *.TXT
2)
find . -iname "*.pdf" -o -iname "*.txt" | while read -r oldname
do
newname=$(echo "${fname}" | tr [[:upper:]] [[:lower:]])
mv "${oldname}" "${newname}"
done
--
Best regards,
Daniel
--
gentoo-user@lists.gentoo.org mailing list
next prev parent reply other threads:[~2008-02-27 15:30 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-27 15:12 [gentoo-user] Renaming tons of files Amar Cosic
2008-02-27 15:30 ` Daniel Iliev [this message]
2008-02-27 15:35 ` Amar Cosic
2008-02-27 15:40 ` Erik
2008-02-27 15:50 ` Galevsky
2008-02-27 17:37 ` Alan McKinnon
2008-02-27 18:08 ` Etaoin Shrdlu
2008-02-27 18:00 ` Alan McKinnon
2008-02-27 19:01 ` Uwe Thiem
2008-02-27 19:04 ` Markus Schönhaber
2008-02-27 19:09 ` [gentoo-user] " Amar Cosic
2008-02-28 16:20 ` [gentoo-user] " Alan McKinnon
2008-02-29 10:34 ` Markus Schönhaber
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=20080227173034.1db8e0e2@ilievnet.com \
--to=daniel.iliev@gmail.com \
--cc=gentoo-user@lists.gentoo.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox