learingperl01
MIS
Hello everyone I am hoping that someone could please help me out with a problem that I am stuck trying to figure out. I am trying to write a script which will read/cat/ a file and doing so will comment out (add a # at the start of the line) when it finds a line that ends with the string xx.xx.xx.xx.
So the recap I am trying to write a script that will be run against a file and if the script finds the string xx.xx.xx.xx at the end of any line it will at a # sign at the beginning of that line to comment it out.
I am pretty new to programming and I was having trouble coming up with an easy way to do this using perl.
Any examples ideas would really help me out.
thanks,
So the recap I am trying to write a script that will be run against a file and if the script finds the string xx.xx.xx.xx at the end of any line it will at a # sign at the beginning of that line to comment it out.
I am pretty new to programming and I was having trouble coming up with an easy way to do this using perl.
Any examples ideas would really help me out.
thanks,