Hi,
I have a large file where I need to remove some repetitive statements and then move the contents below the removed line to the position of that line. To be clear here is an example.
Current file:
1 2 3 A B
5 6 1 2 3
CONTENTS 1 0 2
1 2 3 4 5
1 3 T B 6
CONTENTS 1 0 2
P Q W 4 7
CONTENTS 1 0 2
The final outcome of the file should look like:
1 2 3 A B
5 6 1 2 3
1 2 3 4 5
1 3 T B 6
P Q W 4 7
Any help appreciated.
Thanks.
I have a large file where I need to remove some repetitive statements and then move the contents below the removed line to the position of that line. To be clear here is an example.
Current file:
1 2 3 A B
5 6 1 2 3
CONTENTS 1 0 2
1 2 3 4 5
1 3 T B 6
CONTENTS 1 0 2
P Q W 4 7
CONTENTS 1 0 2
The final outcome of the file should look like:
1 2 3 A B
5 6 1 2 3
1 2 3 4 5
1 3 T B 6
P Q W 4 7
Any help appreciated.
Thanks.