script that produces a file according to input
Posted on 2010-01-04
I need a script (mine is not going very well) that should work like this.
1) The user inputs numbers like this (just an example the numbers will not increment like that), or they can be read from a file as well.
> 2 3
> 4 5
> 6 7
... and so on (always two numbers per line)
2) the script shall then produce a file with the following result:
<bla ble bla0=2 bla1=4 ble0=3 ble1=5>
<bla bla bla0=4 bla1=6 ble0=5 ble1=7>
Can you see the pattern in there? I just dont know how to write the script for it, not really a script guru.