I simply want to do following
replace
EXTRATHING {
};
by
SOMETHING {};
in inputfile. For this, I tried
sed -e 's/EXTRATHING {
};/SOMETHING/' input_file.txt >outfile.txt
This doesn't work. Can someone suggest what would be the correct way of doing this with sed?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…