sed(1) 's/#*net.ipv4.ip_forward=.*/net.ipv4.ip_forward=1/g' /etc/sysctl.d/99-sysctl.conf -i
stream editor for filtering and transforming text
If no -e, --expression, -f, or --file option is given, then the first non-option argument is taken as the
sed script to interpret.  All remaining arguments are names  of  input  files;  if  no  input  files  are
specified, then the standard input is read.
-i[SUFFIX], --in-place[=SUFFIX]

       edit files in place (makes backup if extension supplied)
source manpages: sed