I'm writing now bash script for Ubuntu.
I have a lot of sed
statements that replace and change some text in files.
My question is: How can i know if the change was performed or not.
For example, I have this statement:
sed -i "s;#net.ipv4.ip_forward=1;net.ipv4.ip_forward=1;" /etc/sysctl.conf
Was a change to the file actually made?