Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

repeat and change 1000 times one word

Status
Not open for further replies.

amdx64bt

Technical User
Mar 30, 2009
9
CH
I have one text file where appears the word "material".
I want to repeat this file 1000 times and in each file replace "material" with one of the filenames of other 1000 files that I have in other folder. How I can do it?
 
Hi feherke, and thanks.

I still have some problem. I get the 1000 files duplicated with "material" changed to its filenames. But I don't want to duplicate these 1000 files, I only want to duplicate one file, the "scene.rib", 1000 times. And each one of the 1000 duplications of "scene.rib" must have changed "material" by one filenames of the 1000 files.
 
Yes this is the solution. Perfect. I am very happy. Thanks a lot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top