I want to replace a the entire line in haha.txt that matches a pattern setence.
Orignal: HAHA_IP_TYPE = 1'b1 After : HAHA_IP_TYPE = 1'b0
My command is:
sed -i '/HAHA_IP_TYPE = 1'b1/HAHA_IP_TYPE = 1'b0' haha.txt The error message it showed up are:
sed: -e expression #1, char 34: extra characters after command Is there anyone can help me understand it? It will be a great help.
Thanks Jeffrey
Hcommand, not anscommand.