Hi, I think before I can give you a decent answer, I would need to know a bit more info, for example whether you are always going to be changing the same line, or whether you plan on changing lines that meet a certain criteria. If the latter, what criteria would you be using?
Also, in the brief example you have given, you have replaced 1 with 2... is that all you would want to do? Increment a number within a text file? Or would the changes differ from case to case?
A little more to go on would be helpful.
Regards, LHLTech
IBM CS - AIX V4.3 System Support
Halfway through CATE exams!