Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi,
I am new to sed. Can anybody please solve my problem.
The following lines are input line.
*****************************************
ABCD SECTION.
*****************************************CALL "XYZ".
Output Required as follows :
*****************************************
ABCD SECTION.
*****************************************
COPY COPYBOOK. ----> (New line has to inserted here.)
CALL "XYZ".The "COPY COPYBOOK" line has to be appended after finding ABCD Section and the STARS Line only. (Not above the Stars Line)
Thanks in Advance for solving this.
Arun

Hi,
Using the above example, how we can able to paste the "COPY COPYBOOK" at above the ABCD SECTION and Stars line.Output required:
COPY COPYBOOK. ----> (New line has to inserted here.)
*****************************************
ABCD SECTION.
*****************************************CALL "XYZ".
Thanks
Arun

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |