[sed] replace string?
Dear all,
I'm sorry that I can't understand when I man sed.
What I want to do are replacing some string and inserting strings in first line.
The strings I want to replace, ex:
first second; ==> //first second;
#include <FlexLexer.h> ==> #include "FlexLexer.h"
I may insert a string,such as #include "myheader.h", to first line of some file.
How should I do?
Thanks for your help.
Best Regards,
chuanyung.
|