0

My file is the following cat inputfile

mat 523 

mat 22

I want to insert the following after the mat's line

3006.03c 1.86607E-07    % Li-6
3007.03c 2.30149E-06    % Li-7
5010.03c 3.17890E-07    % B-10
5011.03c 1.27955E-06    % B-11
6000.03c 2.02446E-04    % C-nat

I did the following:

sed -e '/mat/a
3006.03c 1.86607E-07    % Li-6
3007.03c 2.30149E-06    % Li-7
5010.03c 3.17890E-07    % B-10
5011.03c 1.27955E-06    % B-11
6000.03c 2.02446E-04    % C-nat
' inputfile > outputfile

But there is something error in the symbols etc. Any help will be appreciated.

Mohd
  • 138
  • 1
  • 10

0 Answers0