Matt Herzog wrote:
>> rename 's/\.properties/_fr.properties/' `find . -name "*.properties"`
>
> Thanks, but this needs to be recursive and work on the Windows machines.
find is recursive, and if you install it from here:
http://unxutils.sourceforge.net/
it'll work on Windows. The backticks won't work unless you run the
command under one of the shells provided at that site, but the command
can also be flipped around to something like:
find . -name "*.properties" -exec rename
's/\.properties/_fr.properties/' {} ;
I installed File::Rename, which includes a version of that script
conveniently named file-rename (so it doesn't conflict with the shell
built-in 'rename'), and was able to run it on Windows like:
find . -name "*.foo" -exec file-rename s/foo/bar/ {} ;
-Tom
--
Tom Metro
Venture Logic, Newton, MA, USA
"Enterprise solutions through open source."
Professional Profile: http://tmetro.venturelogic.com/
|