I wrote a quick perl script that will find and replace one directory at at time with a bak up
I like to take this further to make it more efficient.
I have an input file with all the IP address to names formated like so in a txt file
I like to feed this input file and do a search and replace in a directory c:\dhcp
In that directory there are subfolders as well.
In addition, there are comment line with #, I dont need to touch those, leave as is please.
Can someone help with the creation of this modified script. I also dont need a .bak created.
perl -e "s/option domain-name-servers addnsr4pri.fs.us, addnsr4sec.fs.us/option domain-name-servers 126.96.36.199,188.8.131.52/g;" -pi $(find . -type f)