Hi All, I have a requirement to change filenames and keep the extensions same, in all the subdirectories recursively for ex: I have directory structure below
dir1
test1.bak
subdir1
test1.txt
subdir2
test1.yyy
after I run the ant script I expect following:
dir1
test2.bak
subdir1
test2.txt
subdir2
test2.yyy
as you can see it changed all the file name from test1 to test2 and keep the extension the same.
I have tried different ways but I cannot acheive renaming the files and still keep the original directory structure.
Thanx for any help
dir1
test1.bak
subdir1
test1.txt
subdir2
test1.yyy
after I run the ant script I expect following:
dir1
test2.bak
subdir1
test2.txt
subdir2
test2.yyy
as you can see it changed all the file name from test1 to test2 and keep the extension the same.
I have tried different ways but I cannot acheive renaming the files and still keep the original directory structure.
Thanx for any help