hello im working on shell script to search conf file.
if it find special pattern change it. like:
#send_value=0
change it to
send_value=1
(remove # and replace 0 with 1)
how can i find and replace character on file?
hello im working on shell script to search conf file.
if it find special pattern change it. like:
#send_value=0
change it to
send_value=1
(remove # and replace 0 with 1)
how can i find and replace character on file?
That's what sed does best.
sed 's/#send_value=0/send_value=1/' foo > bar && mv bar foo