SED

Edit files in place

$ sed -i "s/<match>/<replace>/g" <files>
$ sed -i "s/#\(net.ipv4.ip_forward=1\)/\1/g" /etc/sysctl.conf