Does anyone know a way to rename all these files fast?
Have you tried "rename"?
I don't see any available syntax in the rename command to change a file name
to the lower case version of itself.
ToLower()
--
Best Regards:
Baron.
Are we talking about the same rename command? The entire man page is very
short and does not have a ToLower() directive:
SYNOPSIS
rename from to file...
DESCRIPTION
rename will rename the specified files by replacing the first
occurrence of from in their name by to.
For example, given the files foo1, ..., foo9, foo10, ..., foo278, the
commands
rename foo foo0 foo?
rename foo foo0 foo??
will turn them into foo001, ..., foo009, foo010, ..., foo278.
And
rename .htm .html *.htm
will fix the extension of your html files.
SEE ALSO
mmv(1), mv(1)
1 January 2000
RENAME(1)
(END)
If the files are just the easy characters:
rename 'y/A-Z/a-z/' *
I don't know if it will be fast.
Rename is almost like sed. From the sed manpage.
y/source/dest/
Transliterate the characters in the pattern space which appear
in source to the corresponding character in dest.
$ ls
ANOTHER04 FILE01 FILE02 FILE03
$ rename 'y/A-Z/a-z/' *
$ ls
ANOTHER04 FILE01 FILE02 FILE03
$ rename --version
rename (util-linux-ng 2.14.1)
Its not part of the rename command. Its a function "tolower()"
I think Robert posted a possible command string.
--
Best Regards:
Baron.
On looking, I see that my "rename" is really a symlink to
the perl v5.10.0 script "prename". My util-linux version
of rename is called "rename.ul". With some tests I find
you are correct. It isn't very powerful, but probably faster
than the perl version for simple renames.