Read a file and comment a line with matching a string via shell script
I want to comment a matching line of file (final_ip) via shell script
I have a input file (input_ip) if the searching ip is matching on final_ip file, change the file content mentioned below
Before changing :
192.168.1.12 #SAM
After the change, the matching line must be replacing :
# 192.168.1.12 #SAM