Mixed Case Directory Names

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I know now, you remove the temp file, create a file with the commands and
run it.  I had to figure this out, but it is tougher when you don't know the
language.  There is obviously a tolower function.  I will try to run this
tonight if I can get the stuff copied to my windows machine as a backup in
time.

 Rejean Proulx
Visit my family at http://interfree.ca
MSN is: rejp at rogers.com
Ham License VA3REJ

----- Original Message ----- 
From: "Luke Davis" <ldavis@xxxxxxxxxxxxxx>
To: "Speakup is a screen review system for Linux." <speakup at braille.uwo.ca>
Sent: Monday, November 10, 2003 9:43 PM
Subject: Re: Mixed Case Directory Names


> This should do it for you.  Call it with the root directory of the
> directories/files whos' names you want to change.
>
> For example, if you called it "renamer", and your files were in
> "/var/www/files/otherfiles", you would do:
>
> ./renamer /var/www/files/otherfiles
>
> The script follows:
>
> #!/bin/sh
> cd $1 || echo "No such directory." && exit 1;
> tf=/tmp/renamer.$$;
> rm -f $tf;
> ls *[A-Z]* | awk '{print "mv", $1, tolower($1)}' > $tf;
> source $tf;
> rm -f $tf;
> exit 0;
>
>
>
>
>
>
>
>
>
>
> On Mon, 10 Nov 2003, Rejean Proulx wrote:
>
> > We need a script in the worst way.  We have 7,000 of them to do.
> >
> >  Rejean Proulx
> > Visit my family at http://interfree.ca
> > MSN is: rejp at rogers.com
> > Ham License VA3REJ
> >
> > ----- Original Message -----
> > From: "Luke Davis" <ldavis at shellworld.net>
> > To: "Speakup is a screen review system for Linux."
<speakup at braille.uwo.ca>
> > Sent: Monday, November 10, 2003 7:30 PM
> > Subject: Re: Mixed Case Directory Names
> >
> >
> > > Do you want a script to do them all at once, or can you do it
manually?
> > >
> > > If manyally, just do:
> > >
> > > mv DiReCtoRY directory
> > >
> > > On Mon, 10 Nov 2003, Rejean Proulx wrote:
> > >
> > > > Is there a way of changing a bunch of directories from mixed case to
> > lower
> > > > case names?
> > > >
> > > >  Rejean Proulx
> > > > Visit my family at http://interfree.ca
> > > > MSN is: rejp at rogers.com
> > > > Ham License VA3REJ
> > > >
> > > >
> > > > _______________________________________________
> > > > Speakup mailing list
> > > > Speakup at braille.uwo.ca
> > > > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> > > >
> > >
> > > _______________________________________________
> > > Speakup mailing list
> > > Speakup at braille.uwo.ca
> > > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> >
> >
> > _______________________________________________
> > Speakup mailing list
> > Speakup at braille.uwo.ca
> > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> >
>
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup





[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux