Re: changing multiple filenames

From: Sybren Stüvel (sybrenUSE_at_YOURimagination.thirdtower.com)
Date: 11/27/03


Date: Thu, 27 Nov 2003 17:05:44 +0100

On Thu, 27 Nov 2003 06:50:18 -0800, waa wrote:

> I want to change multiple filenames in a dir. I have ABD.FOR ACD.FOR ...
> in a dir. Now I want change the names o abd.for acd.for ... in the same
> dir.

for file in *; do mv $file `echo $file | tr A-Z a-z`; done

Good luck with it
Sybren

-- 
(o_   Q: God, root, what is difference?
//\   A: God can change the byte order on the CPU, root can't.
V_/_


Relevant Pages

  • Re: questions qasas 28:1-7
    ... it is from the same root. ... There were others in the land besides Jews and some of them were ... sons are killed then there are no heirs. ... in 28:5 god wants to make these ...
    (soc.religion.islam)
  • of causation of 911
    ... The Evangelicals claim money is the root of all evil and the Buddhists ... Om sri Raama jaya Raama jaya jaay Raama. ... (God, homage to Raama hail Raama hail hail Raama.) ...
    (soc.culture.indian)
  • Re: Why Longhorn will be Open Source
    ... Why not get a real usenet program? ... usually best to add a Followup-To header, so you do get attention from ... God can change the byte order on the CPU, root can't. ...
    (comp.os.linux.misc)
  • Re: Why Longhorn will be Open Source
    ... Why not get a real usenet program? ... usually best to add a Followup-To header, so you do get attention from ... God can change the byte order on the CPU, root can't. ...
    (comp.os.linux)
  • Re: Installing RH 6.0 on Compaq Deskpro 4000
    ... If you keep to ancient versions of Linux: ... I wouldn't stick to redhat if I were you. ... God can change the byte order on the CPU, root can't. ...
    (comp.os.linux)