Hi Rob, The text of the files is short (15 words at the most), so it can be either copy of another file, or a text I would edit inside the file. The names of my directory tree looks like this: dir1 / | \ dir2 dir3 dir4 / | / | | \ dir5 dir6 dir5 dir6 dir5 dir6
I want to create a few sets of files. One set goes only to dir5, one set goes only to dir6, etc. the common thing to whole directory tree is the files name. The uncommon thing is the text. In each set, the text stays the same, but only one word- changes. The word, which supposes to be changed, is known- the location in the template, the source & destination. Cheers ?Ronen Kfir System Administrator T.A.U Computing Division Tel: 972-3-6407416 Fax: 972-3-6405158 cellular: 972-55-405910 E-mail: [EMAIL PROTECTED] -----Original Message----- From: Rob Dixon [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 8:17 PM To: [EMAIL PROTECTED] Subject: Re: create files in multi directories Hi Ronen. You need to give us a foothold here. Ronen Kfir wrote: > How would I create a bunch of files with the same name These files are to be a copy of an existing file? Or have some other prescribed content? > save them under the same root directory but only in part of the subdirectories You have constant values of some sort which are the names of the root directory and of all the subdirectories? > change one word in the text inside the files? You know what this word is, where it is to be found (in what is presumably a template file), and what it needs to be changed to? Programming is largely a process of rigorously defining a problem using a programming language. The bulk of the work is describing the problem! Cheers, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]