Associate
- Joined
- 5 Dec 2002
- Posts
- 141
Please can someone help.
I have a job to do for work which involves reading a list of numbers from a text file and using each entry as an input to an a program as part of a script. The text file is laid out like
0012345
0023456
0034567
......
I need to read each entry and apply it like this:
program $entry > outputfile
I then need it to iterate through the full list of numbers.
Also I need to append the output to the file instead of creating an output file for each $entry. I'm not too bothered about this part as I could get away with individual files but it would help.
I appreciate any help you can give.
p.s. If you need further info to help please let me know.
I have a job to do for work which involves reading a list of numbers from a text file and using each entry as an input to an a program as part of a script. The text file is laid out like
0012345
0023456
0034567
......
I need to read each entry and apply it like this:
program $entry > outputfile
I then need it to iterate through the full list of numbers.
Also I need to append the output to the file instead of creating an output file for each $entry. I'm not too bothered about this part as I could get away with individual files but it would help.
I appreciate any help you can give.
p.s. If you need further info to help please let me know.