Mixed Case Directory Names

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

 



I don't want anything touched except change all letters from upper to lower.
Leave all other characters alone.  You can do all directories and files.
Hopefully, it would only rename something if it has uppercase in it as I
might have to set this up in a cron and run daily.  I thought of trying it
myself as I am an experienced programmer but I don't know perl or Shell
script.  This is too important a job for a Newby.

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

----- Original Message ----- 
From: "Barry Pollock" <barryp@xxxxxxxxxxxxxxxxxxx>
To: "Speakup is a screen review system for Linux." <speakup at braille.uwo.ca>
Sent: Tuesday, November 11, 2003 4:17 PM
Subject: Re: Mixed Case Directory Names


> rename is just a perl script that does not work recursively. I have some
> recursive perl code in some of my directory scripts I could write you
> one
> that would do the job.
> If you are doing it, you want unwanted characters such as `(
> ' or `&' removed or changed first? Spaces converted to `_' or what.
> If were doing it, we mayas well make it fully functional.
> Barry
>
>
> On Tue, 11 Nov 2003, Rejean Proulx wrote:
>
> > Can it do recursive renames?  I need that as I have 7000 directories.
> >
> >  Rejean Proulx
> > Visit my family at http://interfree.ca
> > MSN is: rejp at rogers.com
> > Ham License VA3REJ
> >
> > ----- Original Message -----
> > From: "Thomas Stivers" <stivers_t at tomass.dyndns.org>
> > To: <speakup at braille.uwo.ca>
> > Sent: Tuesday, November 11, 2003 10:20 AM
> > Subject: Re: Mixed Case Directory Names
> >
> >
> > > -----BEGIN PGP SIGNED MESSAGE-----
> > > Hash: SHA1
> > >
> > > On 11/10/03  7:05 PM -0500, Rejean Proulx wrote:
> > > > Is there a way of changing a bunch of directories from mixed case to
> > lower
> > > > case names?
> > >
> > > On my debian system I have the rename program, but I remember if it
was
> > > in its own package or not. I think it will do what you want fairly
> > > easily. You can try the following.
> > >
> > > rename 'tr/A-Z/a-z/' *
> > >
> > > That renames everything in a directory, but not recursively. I have
> > > found rename to ve invaluable when dealing with lots of files which
need
> > > to conform to a naming convension. Good luck.
> > >
> > > - --
> > > Unix is a user friendly operating system. It just picks its friends
more
> > > carefully than others.
> > > Thomas Stivers e-mail: stivers_t at tomass.dyndns.org gpg: 45CBBABD
> > > -----BEGIN PGP SIGNATURE-----
> > > Version: GnuPG v1.2.3 (GNU/Linux)
> > >
> > > iD8DBQE/sP5Z5JK61UXLur0RAgVfAJ9j8unxuA1Zim+BywJSgmTpH+O0AgCfdvQb
> > > w4C7BHNo/JVG1iWqHtpccRQ=
> > > =H5dY
> > > -----END PGP SIGNATURE-----
> > >
> > > _______________________________________________
> > > 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