I have plenty of files and I want to make a single file from each of this files. To make it clear, here is an example:
file1.dat
A B C D E
1 2 3 4
file2.dat
E F A B C
2 A C D
Now I want to make it to:
A B C D E
1 2 3 4
E F A B C
2 A C D
However, after every 2nd row I want to enter the following lines:
1 1 1.000(10e12.4) 1
Thus the final output would look like this:
A B C D E
1 2 3 4
1 1 1.000(10e12.4) 1
E F A B C
2 A C D
1 1 1.000(10e12.4) 1
Any help is appreciated.
Thanks.
file1.dat
A B C D E
1 2 3 4
file2.dat
E F A B C
2 A C D
Now I want to make it to:
A B C D E
1 2 3 4
E F A B C
2 A C D
However, after every 2nd row I want to enter the following lines:
1 1 1.000(10e12.4) 1
Thus the final output would look like this:
A B C D E
1 2 3 4
1 1 1.000(10e12.4) 1
E F A B C
2 A C D
1 1 1.000(10e12.4) 1
Any help is appreciated.
Thanks.