I know how to use Textpad to do searches across a folder and subfolders, and that works great - but can it also edit those files and save changes to them?
The application I'm working on is spread across multiple computers, and with a mix of Windows and linux. To work, there are numerous config files to help the various processes find and talk to each other.
Before these files get spread around to the computer that they will reside on, I'd like to do all the configuration in one place using a tool like Textpad. Can it do this?
I envision a single file containing entity pairs like this:
<linux svr 1 IP> = 12.23.34.45
<windows svr 1 IP> = 23.34.45.67
<msg xfer problem dest> = computer.operators@datacenter.com
etc
I'll name that file 'myApp.configValues'
I want textpad to be given this list, plus the name of a folder. I want it to to search for any file in the folder and subfolders to locate files with an extension of '.template'. When it finds these files, I want it to search the file for any instance of a string in the first part of the entity pairs in file "myApp.configValues", and when found, replace that by the second half of the entity pair. Then search again for the next line in 'myApp.configValues', etc. When all the lines in the file are processed, then save the editted file, but drop the '.template' from the filename.
Can textpad do these steps?
Thanks!
Can textpad do stream edits?
Moderators: AmigoJack, bbadmin, helios, MudGuard