I have a file which contains following
# this is temp file
# tempvalue = 0
I want to uncomment tempvalue and change value of tempvalue to 1
# this is temp file
tempvalue = 1
CodePudding user response:
Try it:
sed -i 's/# tempvalue = 0/tempvalue = 1/g' file_name