|i would like to create a file that preforms 2 operations: 1. finds an line in a file goes one line above that and inserts a line and a string statement. i.e.|
find line paul
above line paul insert Apple
and 2. changes certain lines in a file to another line. For instance:
Said file has 100 lines
for lines 30 - 80 change john to jason if john is present in that line.
for lines 30 - 80 change amy to angie if amy is present in that line.
lines 30 - 80may change per file with variable key words is there a way to input that key word?
I would like to do this as a batch file but I've also been recomended to use perl. whichever will be easiest to implement is what I'd like to do.
any help in this matter would be most appreciated.