Python Script to Make Changes on Text Files -- 2

Job ID: 34821526

Budget: $50 – $100 USD

I require a script in python that can perform the following tasks:
1. Read a command from a text file (source file) to be later inserted in another file (main file).
2. Read a second file (search file) which contains the command to look for in the main file. Also, this file needs to provide the values for the variables Line and Position, to be used later.
3. Open the main file and look for the command specified in the search file. Normally the command is repeated several times in the main file.
4. Get a command parameter, identifying it by its position in the command details.
5. Replaced the command found by the text from the file described on the step one (as many times as required).
6. Once the command from the source file is pasted, the parameter copied in the step four should replace some parameters in the new command.

What will be sent to develop the activity?
1. Two different versions of the files group, each of them will contain the corresponding source file, search file and main file. However, the script will be later proved with a different set of files.
2. It is possible to coordinate a meeting if there is any doubt about the requirement.

What is expected as results of your service?
1. A program that can perform the previously described task. It will be considered completed only after its correct performance has been validated with additional files.
2. The source code of the program, which must contain comments explaining how it works.

A file is attached with additional details an examples of the content of each file.
Related categories: Python Programming