I have a file1.txt and the file content is "a b c" and when dynamically i am changing the content of the file1.txt to "1 2 3" through html page.when I reboot my system the content of the file1.txt are not updating that means the content will be same as "a b c".how can I save my file1.txt file before reboot/shutdown using shell scripting.
I have an file3.htm in that page I am searching for a matching string and file3.htm and replacing that string with the replacing string and that out put I am diverting it to other file using sed command
sed -e 's/Ip_address/'$IP'/g' file3.htm > file4.htm