Hi All,
I am beginning my way into sed, I want to do the following:
I have a file "file" which contains few lines. I have two different words in two different lines (word1 in line 1 and word2 in line 4) which I need to change to be "change1" in line 1, and "change2" in line4. They should be replaced in the same file, i.e. keep the file name intact "file".
How would I do that?
Here is exactly what I want:
Code:
void FV(string infile = "test2.xxx",
bool ele = 0,
bool exit=1,
string leafname = "output2",
int nbins = 75,
float xmin = 0,
float xmax = 1.0000001 ){
I want "test2.xxx" to be test3.xxx, and "output2" to be "output3"
Thank you so much in advance,
faizlo