Could anyone tell me how to insert a line at a particular line number using sed.
sed '2i\newtext' filename
I have tried the above command .But it is not working. I am using tcsh shell .Please help.
Could anyone tell me how to insert a line at a particular line number using sed.
sed '2i\newtext' filename
I have tried the above command .But it is not working. I am using tcsh shell .Please help.