bash - sed replace a setence -


i want replace entire line in haha.txt matches 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 showed are:

sed: -e expression #1, char 34: characters after command 

is there can me understand it? great help.

thanks jeffrey

use double quote since content has single quote:

sed -i "s/haha_ip_type             = 1'b1/haha_ip_type = 1'b0/" haha.txt 

Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -