utab wrote:
Dear all,

I have to change some lines from a template file, which is rather long
to paste here, but I would like to make some parts of some lines
optional with my command line arguments but I could not see this
directly, I can count the line numbers and decide on this basis to
decide the lines to be configured to my will.

More specifically, say, I have a that file includes

this is an example python file to play around
.
.
.
some lines
.
.
.
. -> an option line for example.
.
.
.
-> another option line so on.

and execute the script
./myScript option1 option2

so that the options at correct locations will be written.

Any other options for this simple job that i can improve my Python a
bit as well.

Best,
Umut
--
http://mail.python.org/mailman/listinfo/python-list

Your description is not explicit enough to convey your intention. If your template file is too long to post, post a short representative section, an input data sample and a hand-edited sample of the output data you want to generate. You will get more and better advice. .

Frederic

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to