I have a very specific problem, I want to search for the line containing the first word
*Contro_Contact in file1 and when it is found I want to replace the line which comes after that 2 rows downs with another line from anthor file2 so that the parameter are changed automatically fom the file 2
*CONTROL_CONTACT
$# slsfac rwpnal islchk shlthk penopt thkchg orien enmass
0.100000 0.000 2 1 4 0 1 0
The output could be
*CONTROL_CONTACT
$# slsfac rwpnal islchk shlthk penopt thkchg orien enmass
0.2340000 0.000 2 1 4 0 1 0
The changed line I have from another file so its not the problem.
I will be waiting for experts suggestions.
1 Answer